Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: IP Number Regex

by snowcrash (Friar)
on Jul 23, 2001 at 09:37 UTC ( [id://98917]=note: print w/replies, xml ) Need Help??


in reply to IP Number Regex

ok, your regex seems to come straight from the pages of the Owls Book. why did you insert that dot star at the end? it want alter the match in any way, it just captures the rest of the string in $5.
one problem you might have a look into is the context of your matching. for example, strings like "2243423423.23.23.2312blabla34" or "1.2.3.4.5.6.7.8.9" will match even though they probably don't contain what you want to match as a valid ip address.


snowcrash //////

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found