Stringy: 5/5
Stringy : 3 / 5
3 / 5 Stringy
I’m trying to match two leading spaces on a string, or ignore it if not found. I’ve tried:
SELECT *
FROM testtable
WHERE `file` REGEXP '( )Stringy(: | : )'
This doesn’t return any rows though
Is it possible to do this?
You need to escape characters which have special meaning in regular expression pattern such as the brackets
(,).Example with two leading spaces:
and a maximum of two leading spaces:
See also the