SQL Flow Field Guide

REGEXP_LIKE

Catalog support for SQL Server 2025 (17.x)

regex predicate

What changes

Input
string, pattern, flags
Output or change
boolean
Return type
Boolean value. true or false.

Syntax at a glance

REGEXP_LIKE ( string_expression, pattern_expression [ , flags ] )

Work example

Test whether a string follows a documented format such as an internal reference code.

Use a bounded pattern and test null, empty, valid, and malformed values.

Check your work Regular expressions are available in SQL Server 2025 and pattern matching does not replace type validation.

Open Microsoft Learn for full syntax, permissions, and details for your version.