Lets say the words in tables are :
- ab astest
- ab astestabc
- ab as
- ablxyx pqr tpl
- ab as ablmnr
- wasab as ablmnr
- vbn ab as abltere
I need to match where the starting word should be : "ab as" ( Including space ) and then infinity ( that is n no. of combinations or characters )
The result should look under 2 filters :
1) Include space : Starting with "ab as" and any no. of words or characters attached
Result :
ab as ablxyx pqr tpl
ab as ablmnr
2) Exclude space : Starting with "ab as" and any no. of characters and words attached to this string without space
Result :
ab astest
ab astestabc
The results should be mutually exclusive.
Can anyone share me the Mysql REGEX expression for the same?