Regex Help
- From: "inderpaul_s@xxxxxxxxx" <inderpaul_s@xxxxxxxxx>
- Date: Mon, 29 Oct 2007 11:14:44 -0700
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
.
- Follow-Ups:
- Re: Regex Help
- From: usenet
- Re: Regex Help
- From: Dr.Ruud
- Re: Regex Help
- From: Peter Makholm
- Re: Regex Help
- From: smallpond
- Re: Regex Help
- Prev by Date: Re: timing out slow operations
- Next by Date: Re: Regex Help
- Previous by thread: FAQ 8.29 Why can't my script read from STDIN after I gave it EOF (^D on Unix, ^Z on MS-DOS)?
- Next by thread: Re: Regex Help
- Index(es):
Relevant Pages
|
|