I didn't read your code, but search for Greedy vs Nongreedy matching and you'll get an answer.

Regards,
Júlio.

2011/11/1 U.Mutlu <for-gmane@mutluit.com>
Hi,
why is this regex
 const string sRe =
   "((([a-zA-Z]|([a-zA-Z][a-zA-Z0-9\\-]))+[a-zA-Z0-9])\\.)+"
   "((([a-zA-Z]|([a-zA-Z][a-zA-Z0-9\\-]))+[a-zA-Z0-9]))";

not matching this string wholly?
   "a1a.a2a.a3a.a4aaaa"

It rather matches only this part:
   "a1a.a2a.a3a.a4"

What's the problem here?
(I know I can append a delimiter to solve the problem,
but I think the regex should've match it wholly, shouldn't it?)


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users