C# Class YuriyGuts.RegexBuilder.RegexBuilder

Mostra file Open project: YuriyGuts/regex-builder

Public Methods

Method Description
Alternate ( RegexNode expressions ) : RegexNodeAlternation

Generates an alternation expression with two or more options ("a|b|c|...").

Alternate ( RegexNode expression1, RegexNode expression2 ) : RegexNodeAlternation

Generates an alternation expression with two options ("a|b").

Alternate ( RegexNode expression1, RegexNode expression2, RegexQuantifier quantifier ) : RegexNodeAlternation

Generates an alternation expression with two options ("a|b").

Alternate ( RegexNode expressions, RegexQuantifier quantifier ) : RegexNodeAlternation

Generates an alternation expression with two or more options ("a|b|c|...").

AsciiCharacter ( byte code ) : RegexNodeLiteral

Generates an ASCII character pattern ("\xNN") with the specified character code.

AsciiCharacter ( byte code, RegexQuantifier quantifier ) : RegexNodeLiteral

Generates an ASCII character pattern ("\xNN") with the specified character code.

BacktrackingSuppression ( RegexNode innerExpression ) : RegexNodeBacktrackingSuppression

Generates a subexpression with disabled backtracking ("(?>expression)").

BacktrackingSuppression ( RegexNode innerExpression, RegexQuantifier quantifier ) : RegexNodeBacktrackingSuppression

Generates a subexpression with disabled backtracking ("(?>expression)").

Build ( ) : Regex

Generates a Regex object from a list of RegexNodes.

Build ( RegexNode rootNode ) : Regex

Generates a Regex object from a single RegexNode.

Build ( RegexOptions regexOptions ) : Regex

Generates a Regex object from a list of RegexNode and applies a combination of RegexOptions to it.

Build ( RegexOptions regexOptions, RegexNode rootNode ) : Regex

Generates a Regex object from a single RegexNode and applies a combination of RegexOptions to it.

CharacterRange ( char rangeStart, char rangeEnd, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterRange

Generates a character range expression ("[a-z]") with the specified start/end characters.

CharacterSet ( char characters, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterSet

Generates a character set expression ("[abc]") from the specified character array.

CharacterSet ( string characters, RegexQuantifier quantifier ) : RegexNodeCharacterSet

Generates a character set expression ("[abc]") using a preformatted character string.

Comment ( string commentText ) : RegexNodeComment

Generates an inline Regex comment ("(?#text)").

Concatenate ( RegexNode expressions ) : RegexNodeConcatenation

Concatenates an array of nodes.

Concatenate ( RegexNode node1, RegexNode node2 ) : RegexNodeConcatenation

Concatenates two nodes.

Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3 ) : RegexNodeConcatenation

Concatenates three nodes.

Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3, RegexNode node4 ) : RegexNodeConcatenation

Concatenates four nodes.

Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3, RegexNode node4, RegexQuantifier quantifier ) : RegexNodeConcatenation

Concatenates four nodes.

Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3, RegexQuantifier quantifier ) : RegexNodeConcatenation

Concatenates three nodes.

Concatenate ( RegexNode node1, RegexNode node2, RegexQuantifier quantifier ) : RegexNodeConcatenation

Concatenates two nodes.

Concatenate ( RegexNode expressions, RegexQuantifier quantifier ) : RegexNodeConcatenation

Concatenates an array of nodes.

ConditionalMatch ( RegexNode conditionExpression, RegexNode trueMatchExpression, RegexNode falseMatchExpression ) : RegexNodeConditionalMatch

Generates a conditional match expression ("(?(condition)|(true)|(false))").

ConditionalMatch ( RegexNode conditionExpression, RegexNode trueMatchExpression, RegexNode falseMatchExpression, RegexQuantifier quantifier ) : RegexNodeConditionalMatch

Generates a conditional match expression ("(?(condition)|(true)|(false))").

ConditionalMatch ( string conditionGroupName, RegexNode trueMatchExpression, RegexNode falseMatchExpression ) : RegexNodeConditionalMatch

Generates a conditional match expression which uses a named group for condition evaluation ("(?(GroupName)|(true)|(false))").

ConditionalMatch ( string conditionGroupName, RegexNode trueMatchExpression, RegexNode falseMatchExpression, RegexQuantifier quantifier ) : RegexNodeConditionalMatch

Generates a conditional match expression which uses a named group for condition evaluation ("(?(GroupName)|(true)|(false))").

Group ( RegexNode matchExpression ) : RegexNodeGroup

Generates an unnamed capturing group with the specified subexpression.

Group ( RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeGroup

Generates an unnamed capturing group with the specified subexpression.

Group ( string groupName, RegexNode matchExpression ) : RegexNodeGroup

Generates a named capturing group with the specified subexpression.

Group ( string groupName, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeGroup

Generates a named capturing group with the specified subexpression.

GroupBackReference ( int groupIndex, RegexQuantifier quantifier ) : RegexNodeGroupReference

Generates a backreference to the group with the specified index ("\N").

GroupBackReference ( string groupName ) : RegexNodeGroupReference

Generates a backreference to a named group ("\k<GroupName>").

GroupBackReference ( string groupName, RegexQuantifier quantifier ) : RegexNodeGroupReference

Generates a backreference to a named group ("\k<GroupName>").

Literal ( string value ) : RegexNodeEscapingLiteral

Generates a simple string literal with automatic character escaping.

Literal ( string value, RegexQuantifier quantifier ) : RegexNodeEscapingLiteral

Generates a simple string literal with automatic character escaping.

MetaCharacter ( string characterPattern ) : RegexNodeLiteral

Generates a Regex metacharacter, such as \d, \w or \s. Many metacharacter constants are available in RegexMetaChars class.

MetaCharacter ( string characterPattern, RegexQuantifier quantifier ) : RegexNodeLiteral

Generates a Regex metacharacter, such as \d, \w or \s. Many metacharacter constants are available in RegexMetaChars class.

NegativeCharacterRange ( char rangeStart, char rangeEnd, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterRange

Generates a negative character range expression ("[^a-z]") with the specified start/end characters.

NegativeCharacterSet ( char characters, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterSet

Generates a negative character set expression ("[^abc]") from the specified character array.

NegativeCharacterSet ( string characters, RegexQuantifier quantifier ) : RegexNodeCharacterSet

Generates a negative character set expression ("[^abc]") using a preformatted character string.

NegativeLookAhead ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround

Generates a zero-width negative lookahead assertion ("match(?!lookahead)").

NegativeLookAhead ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround

Generates a zero-width negative lookahead assertion ("match(?!lookahead)").

NegativeLookBehind ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround

Generates a zero-width negative lookbehind assertion ("(?<!lookbehind)match").

NegativeLookBehind ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround

Generates a zero-width negative lookbehind assertion ("(?<!lookbehind)match").

NonCapturingGroup ( RegexNode matchExpression ) : RegexNodeGroup

Generates a non-capturing group with the specified subexpression.

NonCapturingGroup ( RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeGroup

Generates a non-capturing group with the specified subexpression.

NonEscapedLiteral ( string value ) : RegexNodeLiteral

Generates a simple string literal "as is", without character escaping. This method can be used to render explicit preformatted patterns of the Regex or some rare constructions not supported by RegexBuilder.

NonEscapedLiteral ( string value, RegexQuantifier quantifier ) : RegexNodeLiteral

Generates a simple string literal "as is", without character escaping. This method can be used to render explicit preformatted patterns of the Regex or some rare constructions not supported by RegexBuilder.

PositiveLookAhead ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround

Generates a zero-width positive lookahead assertion ("match(?=lookahead)").

PositiveLookAhead ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround

Generates a zero-width positive lookahead assertion ("match(?=lookahead)").

PositiveLookBehind ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround

Generates a zero-width positive lookbehind assertion ("(?<=lookbehind)match").

PositiveLookBehind ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround

Generates a zero-width positive lookbehind assertion ("(?<=lookbehind)match").

UnicodeCharacter ( int code ) : RegexNodeLiteral

Generates a Unicode character pattern ("\uNNNN") with the specified character code.

UnicodeCharacter ( int code, RegexQuantifier quantifier ) : RegexNodeLiteral

Generates a Unicode character pattern ("\uNNNN") with the specified character code.

Method Details

Alternate() public static method

Generates an alternation expression with two or more options ("a|b|c|...").
public static Alternate ( RegexNode expressions ) : RegexNodeAlternation
expressions RegexNode Array of option expressions.
return RegexNodeAlternation

Alternate() public static method

Generates an alternation expression with two options ("a|b").
public static Alternate ( RegexNode expression1, RegexNode expression2 ) : RegexNodeAlternation
expression1 RegexNode First option.
expression2 RegexNode Second option.
return RegexNodeAlternation

Alternate() public static method

Generates an alternation expression with two options ("a|b").
public static Alternate ( RegexNode expression1, RegexNode expression2, RegexQuantifier quantifier ) : RegexNodeAlternation
expression1 RegexNode First option.
expression2 RegexNode Second option.
quantifier RegexQuantifier Node quantifier.
return RegexNodeAlternation

Alternate() public static method

Generates an alternation expression with two or more options ("a|b|c|...").
public static Alternate ( RegexNode expressions, RegexQuantifier quantifier ) : RegexNodeAlternation
expressions RegexNode Array of option expressions.
quantifier RegexQuantifier Node quantifier.
return RegexNodeAlternation

AsciiCharacter() public static method

Generates an ASCII character pattern ("\xNN") with the specified character code.
public static AsciiCharacter ( byte code ) : RegexNodeLiteral
code byte ASCII character code.
return RegexNodeLiteral

AsciiCharacter() public static method

Generates an ASCII character pattern ("\xNN") with the specified character code.
public static AsciiCharacter ( byte code, RegexQuantifier quantifier ) : RegexNodeLiteral
code byte ASCII character code.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLiteral

BacktrackingSuppression() public static method

Generates a subexpression with disabled backtracking ("(?>expression)").
public static BacktrackingSuppression ( RegexNode innerExpression ) : RegexNodeBacktrackingSuppression
innerExpression RegexNode Inner expression.
return RegexNodeBacktrackingSuppression

BacktrackingSuppression() public static method

Generates a subexpression with disabled backtracking ("(?>expression)").
public static BacktrackingSuppression ( RegexNode innerExpression, RegexQuantifier quantifier ) : RegexNodeBacktrackingSuppression
innerExpression RegexNode Inner expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeBacktrackingSuppression

Build() public static method

Generates a Regex object from a list of RegexNodes.
public static Build ( ) : Regex
return System.Text.RegularExpressions.Regex

Build() public static method

Generates a Regex object from a single RegexNode.
public static Build ( RegexNode rootNode ) : Regex
rootNode RegexNode Root node.
return System.Text.RegularExpressions.Regex

Build() public static method

Generates a Regex object from a list of RegexNode and applies a combination of RegexOptions to it.
public static Build ( RegexOptions regexOptions ) : Regex
regexOptions RegexOptions Combination of RegexOption flags to be applied to the Regex.
return System.Text.RegularExpressions.Regex

Build() public static method

Generates a Regex object from a single RegexNode and applies a combination of RegexOptions to it.
public static Build ( RegexOptions regexOptions, RegexNode rootNode ) : Regex
regexOptions RegexOptions Combination of RegexOption flags to be applied to the Regex.
rootNode RegexNode Root node.
return System.Text.RegularExpressions.Regex

CharacterRange() public static method

Generates a character range expression ("[a-z]") with the specified start/end characters.
public static CharacterRange ( char rangeStart, char rangeEnd, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterRange
rangeStart char First character in the range.
rangeEnd char Last character in the range.
useCharacterCodes bool True - encode every character with "\uNNNN" pattern. False - use every character explicitly.
quantifier RegexQuantifier Node quantifier.
return RegexNodeCharacterRange

CharacterSet() public static method

Generates a character set expression ("[abc]") from the specified character array.
public static CharacterSet ( char characters, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterSet
characters char An array of allowed characters.
useCharacterCodes bool True - encode every character with "\uNNNN" pattern. False - use every character explicitly.
quantifier RegexQuantifier Node quantifier.
return RegexNodeCharacterSet

CharacterSet() public static method

Generates a character set expression ("[abc]") using a preformatted character string.
public static CharacterSet ( string characters, RegexQuantifier quantifier ) : RegexNodeCharacterSet
characters string Character set description. Special characters will be automatically escaped.
quantifier RegexQuantifier Node quantifier.
return RegexNodeCharacterSet

Comment() public static method

Generates an inline Regex comment ("(?#text)").
public static Comment ( string commentText ) : RegexNodeComment
commentText string Comment text.
return RegexNodeComment

Concatenate() public static method

Concatenates an array of nodes.
public static Concatenate ( RegexNode expressions ) : RegexNodeConcatenation
expressions RegexNode Nodes to concatenate.
return RegexNodeConcatenation

Concatenate() public static method

Concatenates two nodes.
public static Concatenate ( RegexNode node1, RegexNode node2 ) : RegexNodeConcatenation
node1 RegexNode First node.
node2 RegexNode Second node.
return RegexNodeConcatenation

Concatenate() public static method

Concatenates three nodes.
public static Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3 ) : RegexNodeConcatenation
node1 RegexNode First node.
node2 RegexNode Second node.
node3 RegexNode Third node.
return RegexNodeConcatenation

Concatenate() public static method

Concatenates four nodes.
public static Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3, RegexNode node4 ) : RegexNodeConcatenation
node1 RegexNode First node.
node2 RegexNode Second node.
node3 RegexNode Third node.
node4 RegexNode Fourth node.
return RegexNodeConcatenation

Concatenate() public static method

Concatenates four nodes.
public static Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3, RegexNode node4, RegexQuantifier quantifier ) : RegexNodeConcatenation
node1 RegexNode First node.
node2 RegexNode Second node.
node3 RegexNode Third node.
node4 RegexNode Fourth node.
quantifier RegexQuantifier Node quantifier.
return RegexNodeConcatenation

Concatenate() public static method

Concatenates three nodes.
public static Concatenate ( RegexNode node1, RegexNode node2, RegexNode node3, RegexQuantifier quantifier ) : RegexNodeConcatenation
node1 RegexNode First node.
node2 RegexNode Second node.
node3 RegexNode Third node.
quantifier RegexQuantifier Node quantifier.
return RegexNodeConcatenation

Concatenate() public static method

Concatenates two nodes.
public static Concatenate ( RegexNode node1, RegexNode node2, RegexQuantifier quantifier ) : RegexNodeConcatenation
node1 RegexNode First node.
node2 RegexNode Second node.
quantifier RegexQuantifier Node quantifier.
return RegexNodeConcatenation

Concatenate() public static method

Concatenates an array of nodes.
public static Concatenate ( RegexNode expressions, RegexQuantifier quantifier ) : RegexNodeConcatenation
expressions RegexNode Nodes to concatenate.
quantifier RegexQuantifier Node quantifier.
return RegexNodeConcatenation

ConditionalMatch() public static method

Generates a conditional match expression ("(?(condition)|(true)|(false))").
public static ConditionalMatch ( RegexNode conditionExpression, RegexNode trueMatchExpression, RegexNode falseMatchExpression ) : RegexNodeConditionalMatch
conditionExpression RegexNode Condition expression.
trueMatchExpression RegexNode True match expression.
falseMatchExpression RegexNode False match expression.
return RegexNodeConditionalMatch

ConditionalMatch() public static method

Generates a conditional match expression ("(?(condition)|(true)|(false))").
public static ConditionalMatch ( RegexNode conditionExpression, RegexNode trueMatchExpression, RegexNode falseMatchExpression, RegexQuantifier quantifier ) : RegexNodeConditionalMatch
conditionExpression RegexNode Condition expression.
trueMatchExpression RegexNode True match expression.
falseMatchExpression RegexNode False match expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeConditionalMatch

ConditionalMatch() public static method

Generates a conditional match expression which uses a named group for condition evaluation ("(?(GroupName)|(true)|(false))").
public static ConditionalMatch ( string conditionGroupName, RegexNode trueMatchExpression, RegexNode falseMatchExpression ) : RegexNodeConditionalMatch
conditionGroupName string The name of the group to be used as a condition.
trueMatchExpression RegexNode True match expression.
falseMatchExpression RegexNode False match expression.
return RegexNodeConditionalMatch

ConditionalMatch() public static method

Generates a conditional match expression which uses a named group for condition evaluation ("(?(GroupName)|(true)|(false))").
public static ConditionalMatch ( string conditionGroupName, RegexNode trueMatchExpression, RegexNode falseMatchExpression, RegexQuantifier quantifier ) : RegexNodeConditionalMatch
conditionGroupName string The name of the group to be used as a condition.
trueMatchExpression RegexNode True match expression.
falseMatchExpression RegexNode False match expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeConditionalMatch

Group() public static method

Generates an unnamed capturing group with the specified subexpression.
public static Group ( RegexNode matchExpression ) : RegexNodeGroup
matchExpression RegexNode Inner expression.
return RegexNodeGroup

Group() public static method

Generates an unnamed capturing group with the specified subexpression.
public static Group ( RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeGroup
matchExpression RegexNode Inner expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeGroup

Group() public static method

Generates a named capturing group with the specified subexpression.
public static Group ( string groupName, RegexNode matchExpression ) : RegexNodeGroup
groupName string Group name.
matchExpression RegexNode Inner expression.
return RegexNodeGroup

Group() public static method

Generates a named capturing group with the specified subexpression.
public static Group ( string groupName, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeGroup
groupName string Group name.
matchExpression RegexNode Inner expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeGroup

GroupBackReference() public static method

Generates a backreference to the group with the specified index ("\N").
public static GroupBackReference ( int groupIndex, RegexQuantifier quantifier ) : RegexNodeGroupReference
groupIndex int Group ordinal number.
quantifier RegexQuantifier Node quantifier.
return RegexNodeGroupReference

GroupBackReference() public static method

Generates a backreference to a named group ("\k<GroupName>").
public static GroupBackReference ( string groupName ) : RegexNodeGroupReference
groupName string Group name.
return RegexNodeGroupReference

GroupBackReference() public static method

Generates a backreference to a named group ("\k<GroupName>").
public static GroupBackReference ( string groupName, RegexQuantifier quantifier ) : RegexNodeGroupReference
groupName string Group name.
quantifier RegexQuantifier Node quantifier.
return RegexNodeGroupReference

Literal() public static method

Generates a simple string literal with automatic character escaping.
public static Literal ( string value ) : RegexNodeEscapingLiteral
value string Node text. Special characters will be automatically escaped.
return RegexNodeEscapingLiteral

Literal() public static method

Generates a simple string literal with automatic character escaping.
public static Literal ( string value, RegexQuantifier quantifier ) : RegexNodeEscapingLiteral
value string Node text. Special characters will be automatically escaped.
quantifier RegexQuantifier Node quantifier.
return RegexNodeEscapingLiteral

MetaCharacter() public static method

Generates a Regex metacharacter, such as \d, \w or \s. Many metacharacter constants are available in RegexMetaChars class.
public static MetaCharacter ( string characterPattern ) : RegexNodeLiteral
characterPattern string Metacharacter pattern.
return RegexNodeLiteral

MetaCharacter() public static method

Generates a Regex metacharacter, such as \d, \w or \s. Many metacharacter constants are available in RegexMetaChars class.
public static MetaCharacter ( string characterPattern, RegexQuantifier quantifier ) : RegexNodeLiteral
characterPattern string Metacharacter pattern.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLiteral

NegativeCharacterRange() public static method

Generates a negative character range expression ("[^a-z]") with the specified start/end characters.
public static NegativeCharacterRange ( char rangeStart, char rangeEnd, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterRange
rangeStart char First character in the range.
rangeEnd char Last character in the range.
useCharacterCodes bool True - encode every character with "\uNNNN" pattern. False - use every character explicitly.
quantifier RegexQuantifier Node quantifier.
return RegexNodeCharacterRange

NegativeCharacterSet() public static method

Generates a negative character set expression ("[^abc]") from the specified character array.
public static NegativeCharacterSet ( char characters, bool useCharacterCodes, RegexQuantifier quantifier ) : RegexNodeCharacterSet
characters char An array of allowed characters.
useCharacterCodes bool True - encode every character with "\uNNNN" pattern. False - use every character explicitly.
quantifier RegexQuantifier Node quantifier.
return RegexNodeCharacterSet

NegativeCharacterSet() public static method

Generates a negative character set expression ("[^abc]") using a preformatted character string.
public static NegativeCharacterSet ( string characters, RegexQuantifier quantifier ) : RegexNodeCharacterSet
characters string Character set description. Special characters will be automatically escaped.
quantifier RegexQuantifier Node quantifier.
return RegexNodeCharacterSet

NegativeLookAhead() public static method

Generates a zero-width negative lookahead assertion ("match(?!lookahead)").
public static NegativeLookAhead ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround
lookupExpression RegexNode Lookahead expression.
matchExpression RegexNode Match expression.
return RegexNodeLookAround

NegativeLookAhead() public static method

Generates a zero-width negative lookahead assertion ("match(?!lookahead)").
public static NegativeLookAhead ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround
lookupExpression RegexNode Lookahead expression.
matchExpression RegexNode Match expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLookAround

NegativeLookBehind() public static method

Generates a zero-width negative lookbehind assertion ("(?<!lookbehind)match").
public static NegativeLookBehind ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround
lookupExpression RegexNode Lookbehind expression.
matchExpression RegexNode Match expression.
return RegexNodeLookAround

NegativeLookBehind() public static method

Generates a zero-width negative lookbehind assertion ("(?<!lookbehind)match").
public static NegativeLookBehind ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround
lookupExpression RegexNode Lookbehind expression.
matchExpression RegexNode Match expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLookAround

NonCapturingGroup() public static method

Generates a non-capturing group with the specified subexpression.
public static NonCapturingGroup ( RegexNode matchExpression ) : RegexNodeGroup
matchExpression RegexNode Inner expression.
return RegexNodeGroup

NonCapturingGroup() public static method

Generates a non-capturing group with the specified subexpression.
public static NonCapturingGroup ( RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeGroup
matchExpression RegexNode Inner expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeGroup

NonEscapedLiteral() public static method

Generates a simple string literal "as is", without character escaping. This method can be used to render explicit preformatted patterns of the Regex or some rare constructions not supported by RegexBuilder.
public static NonEscapedLiteral ( string value ) : RegexNodeLiteral
value string Node text.
return RegexNodeLiteral

NonEscapedLiteral() public static method

Generates a simple string literal "as is", without character escaping. This method can be used to render explicit preformatted patterns of the Regex or some rare constructions not supported by RegexBuilder.
public static NonEscapedLiteral ( string value, RegexQuantifier quantifier ) : RegexNodeLiteral
value string Node text.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLiteral

PositiveLookAhead() public static method

Generates a zero-width positive lookahead assertion ("match(?=lookahead)").
public static PositiveLookAhead ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround
lookupExpression RegexNode Lookahead expression.
matchExpression RegexNode Match expression.
return RegexNodeLookAround

PositiveLookAhead() public static method

Generates a zero-width positive lookahead assertion ("match(?=lookahead)").
public static PositiveLookAhead ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround
lookupExpression RegexNode Lookahead expression.
matchExpression RegexNode Match expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLookAround

PositiveLookBehind() public static method

Generates a zero-width positive lookbehind assertion ("(?<=lookbehind)match").
public static PositiveLookBehind ( RegexNode lookupExpression, RegexNode matchExpression ) : RegexNodeLookAround
lookupExpression RegexNode Lookbehind expression.
matchExpression RegexNode Match expression.
return RegexNodeLookAround

PositiveLookBehind() public static method

Generates a zero-width positive lookbehind assertion ("(?<=lookbehind)match").
public static PositiveLookBehind ( RegexNode lookupExpression, RegexNode matchExpression, RegexQuantifier quantifier ) : RegexNodeLookAround
lookupExpression RegexNode Lookbehind expression.
matchExpression RegexNode Match expression.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLookAround

UnicodeCharacter() public static method

Generates a Unicode character pattern ("\uNNNN") with the specified character code.
public static UnicodeCharacter ( int code ) : RegexNodeLiteral
code int Unicode character code.
return RegexNodeLiteral

UnicodeCharacter() public static method

Generates a Unicode character pattern ("\uNNNN") with the specified character code.
public static UnicodeCharacter ( int code, RegexQuantifier quantifier ) : RegexNodeLiteral
code int Unicode character code.
quantifier RegexQuantifier Node quantifier.
return RegexNodeLiteral