In an Oracle 10 database, I did a small test:
SELECT REGEXP_REPLACE('İF', '[Iİ]F', 'DONE', 1, 0, 'i') FROM dual;
This doe not seem to match the regex. However, when I remove the last parameter (case insensitive regex parameter), regex matches
SELECT REGEXP_REPLACE('İF', '[Iİ]F', 'DONE', 1, 0) FROM dual;
Below queries also returns "DONE":
SELECT REGEXP_REPLACE('IF', '[Iİ]F', 'DONE', 1, 0) FROM dual; SELECT REGEXP_REPLACE('iF', '[Iİ]F', 'DONE', 1, 0, 'i') FROM dual;
Character set of the database is UTF8.
What should I do to make this regex work?
PS: In Turhish language, uppercase version of the character "i" is "İ".