C# Class YuriyGuts.RegexBuilder.RegexQuantifier

Mostra file Open project: YuriyGuts/regex-builder Class Usage Examples

Public Methods

Method Description
AtLeast ( int minOccurrenceCount ) : RegexQuantifier

The "{n,}" quantifier. Minimum occurrence count.

AtLeast ( int minOccurrenceCount, bool isLazy ) : RegexQuantifier

The "{n,}" or "{n,}?" quantifier. Minimum occurrence count. True - use lazy quantifier. False - use greedy quantifier.

Custom ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : RegexQuantifier

Custom "{n,m}" or "{n,m}?" quantifier.

Exactly ( int occurrenceCount ) : RegexQuantifier

The "{n}" or "{n}?" quantifier. Exact occurrence count.

Exactly ( int occurrenceCount, bool isLazy ) : RegexQuantifier

The "{n}" or "{n}?" quantifier. Exact occurrence count. True - use lazy quantifier. False - use greedy quantifier.

RegexQuantifier ( ) : System

Initializes a new instance of RegexQuantifier.

RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount ) : System

Initializes a new instance of RegexQuantifier.

RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : System

Initializes a new instance of RegexQuantifier.

ToRegexPattern ( ) : string

Converts RegexQuantifier to a Regex pattern string.

Method Details

AtLeast() public static method

The "{n,}" quantifier. Minimum occurrence count.
public static AtLeast ( int minOccurrenceCount ) : RegexQuantifier
minOccurrenceCount int
return RegexQuantifier

AtLeast() public static method

The "{n,}" or "{n,}?" quantifier. Minimum occurrence count. True - use lazy quantifier. False - use greedy quantifier.
public static AtLeast ( int minOccurrenceCount, bool isLazy ) : RegexQuantifier
minOccurrenceCount int
isLazy bool
return RegexQuantifier

Custom() public static method

Custom "{n,m}" or "{n,m}?" quantifier.
public static Custom ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : RegexQuantifier
minOccurrenceCount int Minimum occurrence count.
maxOccurrenceCount int Maximum occurrence count.
isLazy bool True - use lazy quantifier. False - use greedy quantifier.
return RegexQuantifier

Exactly() public static method

The "{n}" or "{n}?" quantifier. Exact occurrence count.
public static Exactly ( int occurrenceCount ) : RegexQuantifier
occurrenceCount int
return RegexQuantifier

Exactly() public static method

The "{n}" or "{n}?" quantifier. Exact occurrence count. True - use lazy quantifier. False - use greedy quantifier.
public static Exactly ( int occurrenceCount, bool isLazy ) : RegexQuantifier
occurrenceCount int
isLazy bool
return RegexQuantifier

RegexQuantifier() public method

Initializes a new instance of RegexQuantifier.
public RegexQuantifier ( ) : System
return System

RegexQuantifier() public method

Initializes a new instance of RegexQuantifier.
public RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount ) : System
minOccurrenceCount int Minimum occurrence count.
maxOccurrenceCount int Maximum occurrence count.
return System

RegexQuantifier() public method

Initializes a new instance of RegexQuantifier.
public RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : System
minOccurrenceCount int Minimum occurrence count.
maxOccurrenceCount int Maximum occurrence count.
isLazy bool True - use lazy quantifier. False - use greedy quantifier.
return System

ToRegexPattern() public method

Converts RegexQuantifier to a Regex pattern string.
public ToRegexPattern ( ) : string
return string