I’ve got a problem that probably has a very easy solution, but I can’t figure it out. Maybe you can 😀
I have a column that contains strings with any number of ‘t’s or ‘f’s. So some typical strings are:
tttttt
fffff
ftft
t
f
ttftfttf
What I need are three different REGEXPs for a MySQL query: one that matches strings with only ‘t’s, one that matches strings with only ‘f’s, and one that matches strings with at least one ‘t’ and at least one ‘f’.
Thanks in advance
1. Only
t‘s2. Only
f‘s3. Contains at least one
fAND onet