Hello
Give the case I have a string,
$str = "2 3 6";
I want to match with:
true if $str =~ /(\d+)\s(\d+)\s($1*$2)/;
that's to say, the thrid column would be (firstCol * SecondCol).
How to write regex for this?
Thank you.
Give the case I have a string,
$str = "2 3 6";
I want to match with:
true if $str =~ /(\d+)\s(\d+)\s($1*$2)/;
that's to say, the thrid column would be (firstCol * SecondCol).
How to write regex for this?
Thank you.