Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Re: :re: IP regex?

Thread Tools

Re: :re: IP regex?

Gareth Glaccum
Posts: n/a
      07-07-2003 Removed) (JamesW) wrote in message news:<(E-Mail Removed). com>...

> $ip = 123.234.456 #true
> $ip = 123..234 #false
> $ip = 12.345 #false
> $ip = 123 #true
> $ip = 123f #false
> hth

Thanks, but it doesn't actually allow me to test for a valid IP
though. Sorry I should have re-stated it in the question.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off