mysql - Regexp for a string -
I want a regular expression to match all the stars like 't' or 't-th', but only 'Th'
My current Rijaxpi is:
REGEXP = '[T-TH]'
But this is all the stars Matches 't', 't-th' and 'g' which 'c' is not desirable
REGEXP = '(T-Th | T [^ h])'
We either match T-THU
literally, or match T
is nothing but a h
except that In all words: T
, t-th
, but not th
.
Comments
Post a Comment