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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -