boost::regex problem
Hi, I don't get why I'm getting diferent results with this regexp in perl and in boost::regex, is there something I'm doing wrong? regards echo " text/html; charset=iso-8859-1" | perl -wne 'if(m#([^/;]+/[^/;]+)#) { print $1."\n" }' http://rafb.net/paste/results/jrUGyO97.html -- Pedro Larroy Tovar, pedro at larroy dot com | http://pedro.larroy.com/ * Las patentes de programación son nocivas para la innovación * http://proinnova.hispalinux.es/
boost@larroy.com wrote:
Hi, I don't get why I'm getting diferent results with this regexp in perl and in boost::regex, is there something I'm doing wrong?
It looks like you are trying to match a subset of the string: for that you need to use regex_search. regex_match will only succeed if it matches *all* of the text. John.
participants (2)
-
boost@larroy.com
-
John Maddock