Regex Help



I'm a newbie to perl expression more or less. What I want to do is to
use a regex pattern to find the presence of an IP address within a
file or string.

I found this example on the net for a pattern.... \b\d{1,3}\.\d{1,3}\.
\d{1,3}\.\d{1,3}\b

but reading on the \b means a word boundary but does it matter that I
want to find the pattern matching an IP address since the IP address
is made up of characters which are numeric and separated by a
decimal ?

Any further explanation of the above solution I have found would be
appreciated. Any other alternative solution would be appreciated.

Many thanks

Victor

.



Relevant Pages

  • Re: Regex Help
    ... use a regex pattern to find the presence of an IP address within a ... file or string. ... "Gewoon is een tijger." ...
    (comp.lang.perl.misc)
  • Re: Regex Help
    ... use a regex pattern to find the presence of an IP address within a ... file or string. ... "Gewoon is een tijger." ...
    (comp.lang.perl.misc)