I have a MSSQL table with large number of alpha numeric codes. I have to verify these codes are within certain characters. How do I write a SQL in MSSQL? Any advice ?
Codes Table
JFBBB22 -> Valid
JBBYB33
AXBBB22 ->Invalid
LBBBB33
Code I am using in c# to validate..
Regex.IsMatch(code, "^[BCDFGHJKLMNPQRSTVWXZ123456789]*$").