Boost logo

Boost Users :

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


U.Mutlu wrote, On 2011-11-01 15:37:
> 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]))";

changing the 2nd part as follows has solved the problem:
   "((([a-zA-Z]|([a-zA-Z][a-zA-Z0-9\\-]))+[a-zA-Z0-9]+))";


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