Re: [Boost-bugs] [Boost C++ Libraries] #679: regex - perl syntax affects what gets matched

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #679: regex - perl syntax affects what gets matched
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-13 17:48:20


#679: regex - perl syntax affects what gets matched
-------------------------------+--------------------------------------------
  Reporter: nobody | Owner: johnmaddock
      Type: Support Requests | Status: closed
 Milestone: | Component: regex
   Version: None | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+--------------------------------------------
Changes (by johnmaddock):

  * status: assigned => closed
  * resolution: None => fixed

Old description:

> {{{
> Hi,
>
> I'm trying to move from 1.32 to 1.33 (I need unicode),
> and it seems that 'what gets matched' have changed: it
> no longer matches the left-most longest match, but the
> first BFS of the expression. Ok. It is documented. But
> how do I pass that?
>
> The only way I found around it is using
> regex::no_perl_ex, but:
> 1. The change of 'what gets matched' is not documented
> (or I didn't find it), and therefore I'm not sure it
> does what I think it does.
> 2. There is no 'lookahead' anymore, and I need it.
>
> Is there a way to tell a perl regex to match the left-
> most longest? or is there another workaround?
>
> Thanks, Moddy.
>
> moddyt_at_[hidden]
>

>

>
> }}}

New description:

 {{{
 Hi,

 I'm trying to move from 1.32 to 1.33 (I need unicode),
 and it seems that 'what gets matched' have changed: it
 no longer matches the left-most longest match, but the
 first BFS of the expression. Ok. It is documented. But
 how do I pass that?

 The only way I found around it is using
 regex::no_perl_ex, but:
 1. The change of 'what gets matched' is not documented
 (or I didn't find it), and therefore I'm not sure it
 does what I think it does.
 2. There is no 'lookahead' anymore, and I need it.

 Is there a way to tell a perl regex to match the left-
 most longest? or is there another workaround?

 Thanks, Moddy.

 moddyt_at_[hidden]





 }}}

Comment:

 Sorry for the delay: no_perl_ex is intended for internal use and
 intentionally not documented. The new match_flag_type options I've just
 added to the docs in SVN now.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/679#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC