I'm looking for a string within the products model field that should be preceded or followed by a space, unless it's an exact match.
I can specifically use the four possible permutations by saying
SELECT products_id, products_model FROM products WHERE products_model LIKE '% UMA12' OR products_model LIKE 'UMA12 %' OR products_model LIKE '% UMA12 %' OR products_model = 'UMA12';
but is there a regexp I can use to express this more succinctly?
This query should match
FOO UMA12 BAR
UMA12
UMA12 FOO
FOO UMA12
but not
UMA1
FUMA1
etc.