Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.regex expression construction
From: Eric J. Holtman (eric_at_[hidden])
Date: 2010-03-11 11:01:24


Shaolin wrote:
> Hello Gevorg,
>
> An example string: (4+1)*2 - I want to return true if the parentheses
> are found and false if there are none or there is a partial match (
> e.g. (2+2+1 will return false because there is only one parenthese and
> hence the equation is incomplete).
>

You can't really do parathesis matching with regular expressions.


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