Hi!
I have tried it with the preg_* functions of PHP and found a regexp that will match what you are looking for.
I hope it works for mysql aswell:
PHP Code:
$text = "m go home";
preg_match("/^m go home$/", $text, $result);
The output will be:
Code:
Array
(
[0] => m go home
)
It will not match if $text is for example "me go home".
I don't know the meaning of "[" and "]" in MySQL regexp but normally you define a character range with them.
I have tested the regexp you used and it will match
mo goh home as well, since the letters "o" and "h" are used in the word home.
Hope it helps.
--Chris
Bookmarks