SQL Flow Field Guide

REGEXP_SPLIT_TO_TABLE

Catalog support for SQL Server 2025 (17.x)

regex split rows

What changes

Input
string, pattern, flags
Output or change
rowset of split parts

Syntax at a glance

REGEXP_SPLIT_TO_TABLE ( string_expression, pattern_expression [ , flags ] )

Work example

Split text into rows where separators follow a pattern rather than one literal character.

Trim and validate tokens after splitting and define the result order separately.

Check your work No delimiter match returns the whole source string as one row.

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