#include #include using namespace icl; int main(int n, char **ppc){ if(n<3){ ERROR_LOG(str("usage ") + str(*ppc) + " [regex] [TEXT]"); } std::ostringstream os; std::copy(ppc+2,ppc+n,std::ostream_iterator(os," ")); MatchResult r = match(os.str(),ppc[1],10); if(r){ std::cout << "** MATCH **" << std::endl << std::endl; std::cout << "** here are up to 10 submatches" << std::endl; for(unsigned int i=0;i