Identifying an IP address
Phil Davis
revdev at pdslabs.net
Fri Apr 6 13:25:35 EDT 2007
If you just want to detect the presence of IP address lines, you could do
something like:
filter tList with "[1-255].[0-255].[0-255].[1-255]"
return (the number of lines in tList <> 0)
Phil Davis
jbv wrote:
> Hi list,
>
> does anyone have a function that checks a string
> and returns true if it contains an IP address ?
> In the data I'm working with, if a string contains
> an IP, the whole string is the IP (which means
> there isn't any extra junk). I guess this should make
> things easier...
>
> so far I'm running a test on strings that returns true
> if it contains only numbers and dots... but I wonder
> if that's enough...
>
> Thanks,
> JB
More information about the use-livecode
mailing list