Readable solution, but scans entire string:
if (grep $_!=2, map length, /(:+)/g) { die }
Stops at first error:
if (/: (?: :: | (?<!::)(?!:) )/x) { die }
In reply to Re: Regex Validation
by ikegami
in thread Regex Validation
by jimb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |