Skip to content

POSITION_REGEX

SELECT POSITION_REGEX('C' IN 'Oracle' ) FROM DUAL;
4

In the above example, POSITION_REGEX function finds the position of the first occurrence of ‘C’ in the string ‘Oracle’. The function returns the position as an integer value, which in this case is 4.