Next | Regular Expression Mastery | 37 |
``How do I match a double-quoted string?''
/"[^"]*"/
"If I were your husband," he replied, "I should drink it."
Starting in 5.6.0, .* and .*? got an optimization
As a result, there is no longer much difference between these examples
However, the difference still holds for more complicated cases
Next | Copyright © 2002 M. J. Dominus |