Re: RFC 72 (v1) The regexp engine should go backward as well as forward.

[email protected] (Tom Christiansen)
Newsgroups perl.perl6.language.regex
Message-ID <24922.967743891@chthon>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.