write a regular expressions to fetch all the valid ip's

Answer Posted / saravanan6060

Hi,




check this out 
====================




I am trying to match first octet in an valid IP address ,Please copy and paste for the remaining octet




regexp {^([1-9]|[0-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).} $ip match first




I have matched in below order ...
1-10




11-99




100-199




200-249




250-255 

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi all, Is there any certification exams available for TCL and Perl. If so please let me know, my mailid is vpbharathi@gmail.com. Thanks in advance, Bharathi.P

2526