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])$/;
In reply to Re: Re: Regex for IP and Optional Port
by spaz
in thread Regex for IP and Optional Port
by shockme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |