Re: Regular Expression and Useage



On Oct 30, 11:31 am, TonyV <kingskip...@xxxxxxxxx> wrote:
On Oct 30, 1:54 pm, "inderpau...@xxxxxxxxx" <inderpau...@xxxxxxxxx>
wrote:

I'm somewhat new to regular expression and want to know how to extract
any strings which match an IP address.

I found this on the net and wanted to know if this is the most
efficient (easiest/shortest) way to write the expression or pattern to
match. Also in the discovered solution why do they use the \b word
boundary switch since the characters are of a numeric type ? I'm not
sure about this.

\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b

Many thanks in advance.

Victor

Please take a look at the answers to the exact same question you
posted less than 24 hours ago in the thread titled, "Regex Help."

--TV

Sorry to ask but if you can send me the URL to the post I would be
happy to read that. For some reason I have been unable to find my own
post either through my profile or just plain searching the NG where I
posted. Hence the reason for my posting again. I'm not sure what the
issue is.

.



Relevant Pages

  • Re: Thomas Covenant series
    ... reason not to continue modifiying it given the need, ... I don't see any reason, then, why the Earth could not be described as ... one would be hard-pressed to say they fit with reality. ... pattern of them, and lift that pattern up (shaken loose of anything ...
    (rec.arts.sf.composition)
  • Re: memset question!
    ... parameter is also a *byte* fill pattern. ... So, filling an integer with ... 11, like above will fill it with hex 0x0B0B0B0B, or decimal ... For that reason, memset's middle parameter is best passed ...
    (microsoft.public.vc.language)
  • Re: java.sql.Date returning wrong date
    ... some reason the conversion is not working. ... What do you imagine "mm" means to SimpleDateFormat? ... the possible pattern letters in the javadoc in SimpleDateFormat.java. ...
    (comp.lang.java.programmer)
  • Re: Genetics of colour blindness?
    ... > guys can see through camouflage that stops a normally sighted guy. ... People with colour vision give priority to colour information, ... So both normal and colour blind people see a pattern in the test card. ... Don't fall into the fallacy that there must be a reason ...
    (talk.origins)
  • Re: For the French TOG-Trippers ...
    ... Lozzo wrote: ... "normally" for a while, then suddenly, for no obvious reason, ... to go completely potty. ... It was the pattern before as well, ...
    (uk.rec.motorcycles)