Case: To accept person_name satisfying following criteria:
- Allows any alphabetic symbols
- Space
- Dash
- Apostrophe
- Accent grave
Some pre-calculation has been performed to store the name in the string "PERSON_NAME"
LOGIC: SUBSTR(REGEXP_REPLACE(PERSON_NAME,'[^A-Za-z .`''-]+',''),0,50)
SELECT SUBSTR(REGEXP_REPLACE('cafè','[^A-Z|a-z| |.|`|''|-]+'),0,50)
FROM dual;
Passing almost all cases except in case of accented characters:
For example:
Expected result: cafè [i.e symbol above e ` should not be filtered out]
Actual Result: caf