When I am searching for a string ending with one or two numbers, I am using the following pattern:
WHERE MyString LIKE 'ABC[0-9]'
OR MyString LIKE 'ABC[0-9][0-9]'
Is there a way to express my intent in one single equivalent pattern?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If
LIKEsupported regex quantifier syntax, you would do:However, according to the spec it does not.
If you do not want to use the regular expression functions, then you are stuck with what you have.