File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ namespace odgi {
6868
6969 // const char* pattern1 = R"(/(\w+)/(\d+))";
7070 // const char* pattern1 = R"(/([a-zA-Z]*[0-9]*)/(\d+))";
71- const char* pattern1 = R"(/(\w*)/(\d+))";
71+ const char* pattern1 = R"(/(\w*.* )/(\d+))";
7272 std::regex regexi1 = std::regex(pattern1);
7373 std::cmatch cm1; // same as std::match_results<const char*> cm;
74- std::regex_match ("/5-/3",cm1,regexi1);
74+ std::regex_match ("/5-/3",cm1,regexi1); // /1741.hr2/3
7575 std::cout << "the matches were: " << std::endl;
7676 for (unsigned i=0; i<cm1.size(); ++i) {
7777 std::cout << "[" << cm1[i] << "] " << std::endl;
@@ -88,7 +88,7 @@ namespace odgi {
8888 std::cout << " GOT REQUEST : HELLO WORLD!" << std::endl;
8989 });
9090
91- svr.Get (R"( /(\w*)/(\d+))" , [&](const Request& req, Response& res) {
91+ svr.Get (R"( /(\w*.* )/(\d+))" , [&](const Request& req, Response& res) {
9292 /*
9393 for (size_t i = 0; i < req.matches.size(); i++) {
9494 std::cout << req.matches[i] << std::endl;
You can’t perform that action at this time.
0 commit comments