in reply to Regex question
2. 1st 3 chars where 2nd char is '.'if( substr($v1, 0, 2) eq substr($v2, 0, 2) )
3. 1st 3 chars where 2nd char is anythingif( (substr($v1, 0, 3) eq substr($v2, 0, 3) ) && substr($v1, 1 ,1) eq '.' && substr($v2, 1 ,1) eq '.' )
Cheersif( substr($v1, 0, 3) eq substr($v2, 0, 3) )
|
|---|