in reply to Re: (dooberwah) I'm don't think that gives the same results
in thread Regular Expression Tweaking
dooberwah@kyle:~$ perl -e 'print "foobar" =~ /(?<=foo)bar/, "\n";' 1 dooberwah@kyle:~$ perl -e 'print "foobar" =~ /(?=foo)bar/, "\n";' dooberwah@kyle:~$
As you can see, trying to use a look-ahead assertion in place of a look-behind assertion yealds no results. I certainly hope that we're still talking about the same thing. You got me a little confused with the jumping analogy :-). If your actually talking about something different please just tell me.
-Ben Jacobs (dooberwah)
http://dooberwah.perlmonk.org
"one thing i can tell you is you got to be free"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (dooberwa) I hold with beliefs that your regex is incorrect
by Anonymous Monk on Feb 23, 2002 at 13:55 UTC |