Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
~
#PostgreSQL v10+ (?<delimiter>; [;\s]*) #semicolon, followed by semicolons and spaces | '(?>[^']+|'')*' #String Constants | \b[Ee]'(?>[^\\']+|''|\\.)*' #String Constants With C-Style Escapes | (?<stringDollarTag>\$[a-zA-Z\d_]*\$) #Dollar-Quoted String [^$]*+ #speed improves .*? \k<stringDollarTag> | "(?>[^"]+|"")*" | #singe-line comment (?<singeLineComment>-- [^\r\n]*+) | #multi-line comment (?<MutilineComment> /\* [^*/]*+ (?> [^*/]++ | \*[^/] | /[^*] | (?&MutilineComment) )*+ \*/ )
~
sxXg
Unit Tests
There are no unit tests, click
here
to add some.