3 #include <msp/core/getopt.h>
4 #include <msp/strings/regex.h>
9 int main(int argc, char **argv)
14 getopt.add_option('d', "debug", debug, GetOpt::NO_ARG);
15 getopt.add_argument("regex", re_str, GetOpt::REQUIRED_ARG);
20 cout << regex.disassemble();
22 while(getline(cin, line))
24 if(RegMatch match = regex.match(line))