in reply to Regex for last digit should not be "2"
...last digit should not match digit "2"...
If the last character in the string you want to match will always be a digit, then the following will work:
if ($folder =~ /^M2000AAMFAD201[^2]$/){ ...
Hope this helps!
|
|---|