Re: Regular Expression and Useage



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

.



Relevant Pages

  • Re: Query
    ... I don't need an exact match, I can get that to work. ... >Microsoft Access MVP ... >>text strings on an incoming file and compare them to a ... For example, compare name ...
    (microsoft.public.access.queries)
  • Re: How to exclude a string using regexp pattern?
    ... exact output from the Unix grepping tool, ... lots of irrelevant strings ... That part of the regex will match everything up ...
    (comp.lang.java.programmer)
  • Re: How do I correctly measure fretboard?
    ... set all strings to be as close as exact to the 12th fet harmonic or some a ... little sharper or others little flatter? ... your setup and action all done first. ...
    (alt.guitar)
  • Re: Regular Expression and Useage
    ... any strings which match an IP address. ... boundary switch since the characters are of a numeric type? ... A "word" character in Perl is any letter, number, or underscore. ...
    (comp.lang.perl.misc)
  • Re: Losing Accuracy in reading numbers
    ... series of strings in CSV format that are actually numbers. ... the format type but I cant figure out how to convert the exact number. ... Suppose this was a scientific app that required extreme accuarcy in reading ...
    (microsoft.public.dotnet.languages.vb)