in reply to Re: Regexp to match IP address
in thread Regexp to match IP address
I think it's possible to match the same regexp in perl.re=/^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([1-9]|[1-9] +[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}\$/; if(re.test(document.forms[0].ipv4.value)==false){ valid=false; message+="Wrong IP address !\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp to match IP address
by petelock (Initiate) on Jun 02, 2013 at 09:18 UTC | |
|
Re^2: Regexp to match IP address
by Prior Nacre V (Hermit) on Oct 02, 2004 at 02:52 UTC |