in reply to RegEx help

Use $str =~ /^ip\s*v6/i
Raghu

Replies are listed 'Best First'.
Re^2: RegEx help
by linuxer (Curate) on Dec 22, 2008 at 10:41 UTC

    That will only match for the beginning of the string and will not find any occurences in the rest of the string.

    As I understand the original request, the anchor ^ is not wanted here.

      Yup..sorry for that ^
      Raghu