in reply to Re: Regex question
in thread Regex question
In addition, for even more potential validation of this string, the number itself could be made capturing or put parens in the longer regex.
if ( my($n1,$n2,$n3,$n4) = string =~ {\A($number) x ($number) x ($numb +er)/($number)\z} and $n1 == $n2 ) { valid format and square}
|
|---|