| Next | Regular Expression Mastery | 81 | 
Since 5.6, Perl has treated .*, .+, .*?, and .+? specially
When they are followed by some literal string...
...the engine is smarter about how many repetitions might work
As a result, this example is no longer slow:
/".*?"/

| Next | ![]()  | 
    Copyright © 2002 M. J. Dominus |