I'm using pcrecpp to match and expression in my C++ program. The relevant code is:
pcrecpp::RE("GET (\n*|.*)* HTTP").PartialMatch(packet, &getUrl);
cout << "GET " << getUrl << endl;
And the text i want to match is something like:
GET /subscribe?host_int=52830395&ns_map=39290872_6081712982008&ts=133411801
3 HTTP ...
I cannot match the whole expression between GET
and HTTP
because there is a new line (\n). Any idea?