Table of Contents

Enum RegexReplacementSyntax

Namespace
The.SQL.Persistence
Assembly
Instagile.dll

Identifies the substitution syntax a backend's regex-replace implementation expects, so that the translator can rewrite a .NET Regex.Replace replacement string accordingly.

public enum RegexReplacementSyntax

Fields

DotNet = 0

.NET syntax (\(1</code>, <code>\)&, $$). Used by the transient interpreter and the SQLite UDF, which both evaluate the replacement with the .NET engine. No rewrite needed.

Posix = 1

POSIX syntax: \1-\9 backreferences and &amp; for the whole match. Used by PostgreSQL and SQL Server (whose documented bare & token is, in practice, treated as a literal — it too requires &amp;).