Mega Code Archive

 
Categories / Perl / Regular Expression
 

Patterns containing + always try to match as many characters as possible

For example, if the pattern /ab+/ is searching in the string abbc it matches abb, not ab.