REGEXP_LIKE

Returns rows that match a specified pattern in a specified regular expression.

Note:

In SQL, REGEXP_LIKE is a condition instead of a function.

Syntax

Restrictions

The following restrictions apply when you use the REGEXP_LIKE function in the SELECT command:

  • The pattern match is always case-sensitive.

  • The function does not support the match_param argument.

Example

This example shows the problem_id and problem_key for all problems where the problem_key ends with a number.

select problem_id, problem_key from problem \
  where regexp_like(problem_key, '[0-9]$') = true