Following this question and answer, I still have a bit trouble in the result I get,
For instance,
REGEXP '>[^<]*lau[[:>:]]'
will match 'lau' only but not 'laurence' which is correct.
REGEXP '>[^<]*men[[:>:]]'
will match 'empowerment' and 'women' which are not what I am after.
REGEXP '( |>|$)home( |<|$)'
will match 'home' only but not 'home!' which it should.
How can match these correctly?
For instance,
Home - match
HOME - match
welcome home! - match
home is far! - match
hometown - not match
xxhomexx - not match
<a href="home.html">Hello</a> - not match
<p class="home">a box</p> - not match
It should not match any occurrence in html tags. home-town - not match