Quote:
Originally Posted by rogue_ronin
? is the "ungreedy" character. match would end before the second _ character.
m a r
|
Sorry for not recognizing an ungreedy quantifier
*? in Perl syntax.
My favorite tool for working with text using regular expressions is gvim.
gvim alone has 4 (yes, that is FOUR) different syntaxes for writing Regular expressions (and you can combine all four in a single RE, using flags (Magic, NonMagic, VeryMagic, and VeryNonMagic)
The nice thing about standards is that there are so many to choose from.