This will never match and is completly wrong as you mixed up $var1 and $var2.
It should be
but this will still be wrong because
$var2='1.11.2'; $var1='1.1';
would give you a false match
In reply to Re^2: Regex question
by Skeeve
in thread Regex question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |