Tag Archives: regular expression to Validate IP address

24Sep/13

Validate IP address with regular expression

IP Address Regular Expression Pattern ^([01]?dd?|2[0-4]d|25[0-5]).([01]?dd?|2[0-4]d|25[0-5]). ([01]?dd?|2[0-4]d|25[0-5]).([01]?dd?|2[0-4]d|25[0-5])$ Description ^ #start of the line ( # start of group #1 [01]?dd? # Can be one or two digits. If three digits appear, itRead More…