opensubscriber
   Find in this group all groups
 
The Haskell Cafe more information…

h : haskell-cafe@haskell.org 18 July 2012 • 3:08AM -0400

Re: [Haskell-cafe] [haskell-cafe] Non-greedy match in Text.Regx.Posix
by Doug McIlroy

REPLY TO AUTHOR
 
REPLY TO GROUP





> I was exploring Text.Regex.Posix and found that I was not able to do a
non-greedy match by modifying the quantifier with a "?". How can I achieve
non-greedy match in Text.Regex.Posix?

If it's Posix, it is greedy. Successive submatches are as long as
possible subject to the constraint that a longest possible overall match
be found if such exists.

Doug McIlroy

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@hask...
http://www.haskell.org/mailman/listinfo/haskell-cafe

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.