in reply to Look Ahead:

because it must be /([0-9]+)(?=welcome)welcometo india/ to match

Replies are listed 'Best First'.
Re^2: Look Ahead:
by nvivek (Vicar) on Apr 02, 2010 at 09:14 UTC
    I knew how to match the string but I want to know why it is working like that?Explain me?
      Because sometimes you need to look ahead without actual matching.

      For example:
      $num = scalar reverse "1000000000000"; $num =~ s/(\d\d\d(?=\d))/\1,/g; print scalar reverse $num;
      will print 1,000,000,000,000