Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex for ip address javascript

 var ipRegex = new RegExp("^(([1-9]?d|1dd|2[0-5][0-5]|2[0-4]d).){3}([1-9]?d|1dd|2[0-5][0-5]|2[0-4]d)$");
//0.0.0.0 to 255.255.255.255 
 
PREVIOUS NEXT
Tagged: #regex #ip #address #javascript
ADD COMMENT
Topic
Name
7+9 =