in reply to Death to Dot Star!
Note that it's OK to use .*? here. And due to optimizations in the regex engine it's even faster to use it than a negative char class, if the following pattern is constant as it is in this case.my ($m) = reverse($myvar) =~ /"\?(.*?)"/s; $m = reverse $m; print "matched <$m>\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Death to Dot Star!
by Anonymous Monk on Feb 27, 2002 at 04:49 UTC | |
by Anonymous Monk on Feb 27, 2002 at 16:46 UTC | |
by Anonymous Monk on Jul 05, 2002 at 04:27 UTC |