Re: Regex Help
- From: Peter Makholm <peter@xxxxxxxxxxx>
- Date: Mon, 29 Oct 2007 19:09:26 +0000
"inderpaul_s@xxxxxxxxx" <inderpaul_s@xxxxxxxxx> writes:
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 ?
\b is the zero width point between something which is a word character
(\w) and something which isn't (\W). Word characters is defined as
alphabetic characters (a-z, A-Z), decimal digits (0-9) and the
underscore character (_) (and depending on locale something more).
So the four numeric parts of an IP-address counts as words in relation
to \b.
//Makholm
.
- References:
- Regex Help
- From: inderpaul_s@xxxxxxxxx
- Regex Help
- Prev by Date: Problem getting command output
- Next by Date: Query returns -1 if row present (DBI, SQL Server 2000)
- Previous by thread: Re: Regex Help
- Next by thread: Re: Regex Help
- Index(es):
Relevant Pages
|