I have a query such as the below:
SELECT * from table_name where lastname regexp "[[:<:]]Smith[[:>:]]"
This returns
De Smith
Smith
I only need to retrieve Smith
I even tried the below
SELECT * from surnames where last_name regexp "[[:<:]][^\s]Smith[[:>:]]"