Dickson, Paul wrote:
> Lol.. that catches IP's.. nevermind:)  :DERP: 
>
> So, based on those results, I made this simple regex
>
> \d\d\W\d\d\d\W\d\d\d\W\d\d\d

How about:

(\d\d\W\d\d\d\W\d\d\d\W\d\d\d)(?!(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))

This should match your number, as long as it inst a valid IP address.  
Whatever you come up with as a suitable match, negating the matching of 
an IP4 address might be useful as a check.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to