Reputation: 169
Let's say I have a column with emails:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
test23test.com
How can I select only those that contains only one digit?
Result should be:
[email protected]
[email protected]
[email protected]
I tried:
REGEXP '[[:digit:]]{1}'
and REGEXP '[0-9]{1}'
but it shows all results that contain AT LEAST one digit
Upvotes: 1
Views: 336
Reputation: 423
If you don't specify number of repetitions, it is one copy by default. Try something like
REGEXP '(^[0-9]+)([0-9])@.+'
Upvotes: 0