I’m trying to return only those rows which colA and colB do not contain a number or a whitespace
Here is my code so far.
SELECT * FROM table_name WHERE colA REGEXP '[^0-9^\W]' AND colB REGEXP '[^0-9^\W]'
given the dataset
colA colB
---------- ----------
test | testB
33 | text <- this is not returned
blah | 0123A <- this is returned
I am assuming my issue is with my regexp… any help please?
Well your expression does not work because: 33 is both numbers and you’re looking for any non decimal, non whitespace character. so it doesn’t include that row in result.
Try:
ETA: Yea forgot that \whatever does not work