in reply to (shockme) Re: Regex for IP and Optional Port
in thread Regex for IP and Optional Port
Since this is a rather unwieldy expression, and rather static, it should be quite easy to compile it once with qr// and insert it as needed.m/^([01]?\d\d|2[0-4]\d|25[0-5])\.([01]?\d\d|2[0-4]\d|25[0-5])\. ([01]?\d\d|2[0-4]\d|25[0-5])\.([01]?\d\d|2[0-4]\d|25[0-5])$/;
|
|---|