$str =~ /^(?:[^:]|::(?!:))*\z/
Which means $str consists only of characters other than colon ([^:]) and pairs of colons not followed by more colons (::(?!:))
In reply to Re: Regex Validation
by pubnoop
in thread Regex Validation
by jimb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |