4 #include <msp/core/getopt.h>
5 #include <msp/strings/regex.h>
10 int main(int argc, char **argv)
14 getopt.add_option('d', "debug", debug, GetOpt::NO_ARG);
17 const vector<string> &args = getopt.get_args();
21 cerr<<"Usage: "<<argv[0]<<" <regex>\n";
27 cout<<regex.disassemble();
29 while(getline(cin, line))
31 if(RegMatch match = regex.match(line))