Boost logo

Boost Users :

Subject: [Boost-users] [regex] why partial match / early break ?
From: U.Mutlu (for-gmane_at_[hidden])
Date: 2011-11-01 10:37:49


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net