JB,

On 06 Apr 2007, at 11:06, jbv wrote:

-snip-


yes, I'm using Regex :

 put "(\d{1,3}\.){3}\d{1,3}" into myRegex
 get matchtext(myIP , myRegex)

but this one detects only 4 patterns of 1 to 3 digits separated
by dots, hence my original concern : it will also include non
valide IPs such as 999.999.999.999, as well as private IPs...


if you want to check an ip number without a port number attached try this:

put "^((\d|[01]?\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[01]?\d\d|2[0-4]\d|25 [0-5])$" into myRegex

Greetings,
Wouter
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to