In This Article

MatchingRegexOptions Class

Runs MatchingRegexCode logic.

public class MatchingRegexOptions
Inheritance:
object object

Constructors

MatchingRegexOptions()

Initializes an instance of the class.

public MatchingRegexOptions()

Properties

CanLineFeedMatchAnyLineTerminator

Whether a line feed ('\n') character in regex patterns should match any line terminator, not just LF-only characters.

public bool CanLineFeedMatchAnyLineTerminator { get; set; }

Property Value

bool:

The default value is false, meaning apply no special handling to '\n' usage.

Remarks

This property simplifies regex patterns by replacing '\n' usage in two scenarios. First, a \n in a character class will add all other line terminators characters to the character class. Second, a \n outside of a character class will match any valid line terminator sequence.

CaseSensitivity

The case sensitivity of the matching regex pattern.

public CaseSensitivity CaseSensitivity { get; set; }

Property Value

CaseSensitivity:

The default value is Sensitive.

Inherited Members

Extension Methods