I am having a problem with matching word boundaries with REGEXP_LIKE. The following query returns a single row, as expected.
select 1 from dual
where regexp_like('DOES TEST WORK HERE','TEST');
But I want to match on word boundaries as well. So, adding the "\b" characters gives this query
select 1 from dual
where regexp_like('DOES TEST WORK HERE','\bTEST\b');
Running this returns zero rows. Any ideas?
select regexp_replace('DOES TEST WORK HERE','\bTEST\b','X') from dual;
returnsDOES TEST WORK HERE
... It works if you use\W
, but that's not the same as\b
:P – Phallicism