I require a means of checking to see if a string has the following exact pattern within it, i.e.:
(P)
Examples where this would be true is:
Test System (P)
I am not sure though how to check for cases when the string that doesn’t have ‘(P)’, i.e:
‘Test System (GUI for Prof)’ – in this case, this would be false but I am using REGEXP_LIKE and it actually returns TRUE.
I only want it to return True when the exact string of ‘(P)’ exists within the search string.
How can I do this in PL/SQL?
Use:
Regular-Expressions.info is a great resource.
Regular INSTR would work (Oracle 8i+):
LIKE works too: