Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex for ipv4

let isIpv4Valid = ipStr.match('/^((25[0-5]|2[0-4][0-9]|[10]?[0-9]?[0-9])(.|$)){4}/ig')
 
PREVIOUS NEXT
Tagged: #regex
ADD COMMENT
Topic
Name
1+1 =