Whenever I seem to have this "search backwards" urge (not very often,
I admit), I without much thought just throw memory at it with
reverse($str) =~ /pat/
Or, if that's not the "search backwards" sense intended, then maybe
I'll throw time at it:
$str =~ /.*pat/
Sometimes I've also done
($str . $str) =~ /pat/
to effect a search that wraps around--kinda.
--tom
- RFC 72 (v1) The regexp engine should go backward as we... Perl6 RFC Librarian
- Re: RFC 72 (v2) The regexp engine should go backw... mike mulligan
- Re: RFC 72 (v1) The regexp engine should go backw... Mark-Jason Dominus
- Re: RFC 72 (v1) The regexp engine should go b... mike mulligan
- Re: RFC 72 (v1) The regexp engine should ... Mark-Jason Dominus
- Re: RFC 72 (v1) The regexp engine sho... Tom Christiansen
- Re: RFC 72 (v1) The regexp engine should go b... Peter Heslin
- Re: RFC 72 (v3) Variable-length lookbehin... mike mulligan
- Re: RFC 72 (v3) Variable-length lookb... Hugo
- Re: RFC 72 (v3) Variable-length ... mike mulligan
- Re: RFC 72 (v3) Variable-length ... Hugo
- Re: RFC 72 (v3) Variable-len... mike mulligan
- Re: RFC 72 (v3) Variable-len... Hugo
- Re: RFC 72 (v1) The regexp engine should ... Mark-Jason Dominus
- Re: RFC 72 (v1) The regexp engine should ... Mark-Jason Dominus
- Re: RFC 72 (v3) Variable-length lookbehin... Hugo
