in reply to Re^3: Regex questionin thread Regex question
Indeed! I mixed it up, not you.
But your fix doesn't help with:
$var2='1.1'; $var1='1.1'; [download]
It will give you a false negative ;-) See my solution above which handle both cases.