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.if($str=~/([0-9]+)(?=welcome)to india/) { print "Matched\n"; }
In reply to Look Ahead: by nvivek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |