RegexParseOptions Class
Configures how RegexSyntaxTree parses a pattern.
public sealed class RegexParseOptions : IEquatable<RegexParseOptions>- Implements
Constructors
| Name | Description |
|---|---|
| RegexParseOptions(RegexDialect) |
RegexParseOptions(RegexDialect)
RegexParseOptions.cspublic RegexParseOptions(RegexDialect dialect)Parameters
dialectRegexDialect
No documentation is available.
Properties
| Name | Description |
|---|---|
| Dialect | The dialect to parse the pattern as. |
| MaxRecursionDepth | The maximum number of nested groups and character classes the parser descends into before reporting REGEX0200 and treating the remaining text as skipped text. Guards against stack overflow on deeply nested input. |
| PatternOptions | The options in effect at the start of the pattern, as if the caller had passed them to the engine. An inline construct such as (?x) changes them from that point on. |
Dialect
RegexParseOptions.csMaxRecursionDepth
RegexParseOptions.csThe maximum number of nested groups and character classes the parser descends into before reporting REGEX0200 and treating the remaining text as skipped text. Guards against stack overflow on deeply nested input.
public int MaxRecursionDepth { get; init; }PatternOptions
RegexParseOptions.csThe options in effect at the start of the pattern, as if the caller had passed them to the engine. An inline construct such as (?x) changes them from that point on.
public RegexPatternOptions PatternOptions { get; init; }Property value
Methods
| Name | Description |
|---|---|
| Equals(RegexParseOptions?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(RegexParseOptions?)
public bool Equals(RegexParseOptions? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(RegexParseOptions?, RegexParseOptions?) | |
| operator !=(RegexParseOptions?, RegexParseOptions?) |
operator ==(RegexParseOptions?, RegexParseOptions?)
public static bool operator ==(RegexParseOptions? left, RegexParseOptions? right)No documentation is available.
operator !=(RegexParseOptions?, RegexParseOptions?)
public static bool operator !=(RegexParseOptions? left, RegexParseOptions? right)No documentation is available.
Constants
| Name | Description |
|---|---|
| DefaultMaxRecursionDepth | The default value of RegexParseOptions.MaxRecursionDepth. |
DefaultMaxRecursionDepth
The default value of RegexParseOptions.MaxRecursionDepth.
public const int DefaultMaxRecursionDepth = 128