Posted By

edwinjanmoss on 10/19/07


Tagged


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

shovanjoshi
vali29
copyleft
pagetoscreen
naz
Netzach
liqweed


IP Address


 / Published in: Regular Expression
 

(no check for alid values (0-255)) 999.999.999.999

  1. /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Scooter on July 26, 2008

You're not really validating an IP address without constraining the range of each octet. http://snipplr.com/view/7522/ip-address/

You need to login to post a comment.