I need to write a REGEX to exclude the following codes
D57 D59 D60 D61 D62X D63 D64 D69 D89 E85
and here is the chunk of SQL I have been using. There must be a better way by using extra brackets and the OR operator?
AND SUBSTRING(CODE, 1, 3) NOT LIKE 'D5[79]'
AND SUBSTRING(CODE, 1, 3) NOT LIKE 'D6[0-49]'
AND SUBSTRING(CODE, 1, 3) NOT IN ('D89','E85')
LIKEoperator does not support regular expressions.