05-31-2008, 12:24 PM
|
#43 (permalink)
|
|
The Contributor
Join Date: Dec 2007
Location: Belgium
Posts: 58
Thanks: 5
|
Your second regex is a nice experiment, however, my guess is that it is horribly inefficient because of the combination of (lazy) quantifiers.
Note that there is nothing wrong at all with using the s modifier.
In Friedl's book you'll read about a more efficient way. I believe it also takes into account situations like /* echo '*/'; */.
|
|
|
|