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

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -