Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Look Ahead:by nvivek (Vicar) |
on Apr 02, 2010 at 08:21 UTC ( [id://832445]=perlquestion: print w/replies, xml ) | Need Help?? |
nvivek has asked for the wisdom of the Perl Monks concerning the following question:
why look ahead ?= isn't working if we give pattern after it.
For ex,
My input string is as follows: 1welcometo india. Why it isn't getting matched? But,it gets matched when I used .* instead of "to india" after (?=welcome) in the pattern.
Back to
Seekers of Perl Wisdom
|
|