in reply to Regex for last digit should not be "2"
You've already received two suggestions meaning "not 2". Here's what the difference between them is:
This means "either 0, or 1, or anything between 3 and 9".
This means "anything other than 2", so while it would not match "2" it would match non-numeric characters like "x".
|
|---|