C# Class FlimFlan.ReadableRex.Pattern

Show file Open project: royosherove/dotnet-linq-to-regex Class Usage Examples

Public Methods

Method Description
Group ( Pattern innerExpression ) : Pattern

A subset of the pattern that can be referenced as ordinal captures

IsTrue ( ) : bool
Literal ( string content ) : Pattern

A string that will be properly escaped so that reserved characters are treated as literals

NamedGroup ( string groupName, Pattern innerExpression ) : Pattern

A subset of the pattern that can be referenced as a named capture

NegatedSet ( Pattern innerExpression ) : Pattern

Matches any single character not contained within

Pattern ( ) : System
Phrase ( Pattern innerExpression ) : Pattern

A non-capturing group

RegEx ( string pattern ) : Pattern

Any existing regular expression pattern.

Set ( Pattern innerExpression ) : Pattern

Matches any single character contained within

ToString ( ) : string
operator ( ) : Pattern

Private Methods

Method Description
Eval ( ) : string
Pattern ( string initialRegexContent ) : System

Method Details

Group() public method

A subset of the pattern that can be referenced as ordinal captures
public Group ( Pattern innerExpression ) : Pattern
innerExpression Pattern
return Pattern

IsTrue() public method

public IsTrue ( ) : bool
return bool

Literal() public method

A string that will be properly escaped so that reserved characters are treated as literals
public Literal ( string content ) : Pattern
content string
return Pattern

NamedGroup() public method

A subset of the pattern that can be referenced as a named capture
public NamedGroup ( string groupName, Pattern innerExpression ) : Pattern
groupName string
innerExpression Pattern
return Pattern

NegatedSet() public method

Matches any single character not contained within
public NegatedSet ( Pattern innerExpression ) : Pattern
innerExpression Pattern
return Pattern

Pattern() public method

public Pattern ( ) : System
return System

Phrase() public method

A non-capturing group
public Phrase ( Pattern innerExpression ) : Pattern
innerExpression Pattern
return Pattern

RegEx() public method

Any existing regular expression pattern.
public RegEx ( string pattern ) : Pattern
pattern string
return Pattern

Set() public method

Matches any single character contained within
public Set ( Pattern innerExpression ) : Pattern
innerExpression Pattern
return Pattern

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : Pattern
return Pattern