I am trying to use MySql REGEXP to find rows where green
and 2012
occurs in the column
I am using .+
in the regexp.
This works:
select 'green 2012-01' REGEXP 'green.+2012'
returns 1
but if I place the '2012' first it returns 0
select 'green 2012-01' REGEXP '2012.+green';
returns 0
I am using MYSQL Software version: 5.1.43 - MySQL Community Server (GPL)