Opened 16 years ago

Last modified 15 years ago

#679 closed Support Requests (fixed)

regex - perl syntax affects what gets matched — at Initial Version

Reported by: nobody Owned by: John Maddock
Milestone: Component: regex
Version: None Severity: Problem
Keywords: Cc:

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@itemfield.com





Change History (0)

Note: See TracTickets for help on using tickets.