RegexParseException.Offset Property

Definition

Gets the zero-based character offset in the regular expression pattern where the parse error occurs.

C#
public int Offset { get; }

Property Value

The offset at which the parse error occurs.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10