Subject: Re: [boost] boost regex recursive quesion
From: ÎÂÎ÷²¨ (wenxibo_at_[hidden])
Date: 2015-03-23 20:08:50
Hello John ,
Thanks for your reply .
Does it means that all of recursive calls should be avoid in regular expression ?
I had tried another expression "\(((?>[^()]+)|(?0))*\)" which used to check parenthesis pair . I work well .
So I think boost::regex support recursive calls .
If it is a bug , this is a serious problem , why boost not make a caveat for it in document ?
> From: jz.maddock_at_[hidden]
> Date: Mon, 23 Mar 2015 17:57:46 +0000
> To: boost_at_[hidden]
> Subject: Re: [boost] boost regex recursive quesion
> > a(?0)?
> > This regex contains a recursive call (?0).
> > It should match a string with any arbitrary length filled with 'a' characters.
> > regex_match only returns true for "a" and "aa", but failed to match "aaa" and any string longer than three characters.
> > Why?
> It's a bug :(
> Unfortunately the "obvious" fix breaks a heck of a lot of other stuff.
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk