I am trying to run a regular expression in a SQL statement to return all rows where the regex is true.
This is the regex:
(A1|A2|A3|A4).{0,50}(B1|B2|B3).{0,200}(word1|word2)
I have tried this (and variants of):
SELECT * FROM TABLE_NAME WHERE COLUMN_NAME LIKE '%[(A1|A2|A3|A4).{0,50}(B1|B2|B3).{0,200}(word1|word2)]%'
The regex itself is okay, but running seems to be the problem. Any help is appreciated.