Or:
which will look for it separated from other stuff by something which would not match '\w' (where the start and end of the string are deemed not to match '\w'). This will not match 'hip v6' or 'ip v61' or 'ipv6_1' (the last because '_' will match '\w'). It will match 'ip v6.12' -- but only up to (but not including) the '.'.$string =~ m/\bip\s*v6\b/i
In reply to Re: RegEx help
by gone2015
in thread RegEx help
by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |