Hey, that's awesome. If I understood it, the following regex is much simpler:
my $var = '...'; print 'Good' if '...Ovid' =~ /\Q$var\E(?=Ovid)/;
That regex is going to become:
/$var<before:Ovid>/
Much nicer :)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to Re: Re: Rumors of Next Apocalypse
by Ovid
in thread Rumors of Next Apocalypse
by VSarkiss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |