C# Class Pihrtsoft.Text.RegularExpressions.Linq.Examples.Snippets

Mostra file Open project: JosefPihrt/LinqToRegex

Public Methods

Method Description
CSharpCharacterLiteral ( ) : Pattern
CSharpEscapedTextLiteral ( ) : Pattern
CSharpLineComment ( ) : Pattern
CSharpLiteral ( ) : Pattern
CSharpLiteralOrComment ( ) : Pattern
CSharpMultilineComment ( ) : Pattern
CSharpTextLiteral ( ) : Pattern
CSharpVerbatimTextLiteral ( ) : Pattern
EmailAddress ( ) : Pattern
EmptyLine ( ) : QuantifiablePattern

Returns a pattern that matches an empty line. Neither carriage return nor linefeed is included in the match.

EmptyLine ( bool includeNewLine ) : QuantifiablePattern

Returns a pattern that matches an empty line, optionally including new line characters. Empty line is defined as a start of line

EmptyOrWhiteSpaceLine ( ) : QuantifiablePattern

Returns a pattern that matches a line that is empty or contains only whitespace(s). Neither carriage return nor linefeed is included in the match.

EmptyOrWhiteSpaceLine ( bool includeNewLine ) : QuantifiablePattern

Returns a pattern that matches a line that is empty or contains only whitespace(s), optionally including new line characters.

FirstLineWithoutNewLine ( ) : QuantifiablePattern

Returns a pattern that matches first line of the string. Neither carriage return nor linefeed is included in the match.

LeadingTrailingWhiteSpace ( ) : QuantifiablePattern

Returns a pattern that matches leading and trailing whitespace of the string (or line if the RegexOptions.Multiline option is applied). A carriage return is not included in the match.

LeadingWhiteSpace ( ) : QuantifiablePattern

Returns a pattern that matches leading whitespace of the string (or line if the RegexOptions.Multiline option is applied).

LineLeadingWhiteSpace ( ) : QuantifiablePattern
LineTrailingWhiteSpace ( ) : QuantifiablePattern
LinefeedWithoutCarriageReturn ( ) : QuantifiablePattern

Returns a pattern that matches a linefeed that is not preceded with a carriage return.

TrailingWhiteSpace ( ) : QuantifiablePattern

Returns a pattern that matches trailing whitespace of the string (or line if the RegexOptions.Multiline option is applied). A carriage return is not included in the match.

XmlCData ( ) : Pattern

Private Methods

Method Description
NonEmptyLine ( ) : QuantifiablePattern
NonEmptyLine ( bool includeNewLine ) : QuantifiablePattern
NonEmptyOrWhiteSpaceLine ( ) : QuantifiablePattern
NonEmptyOrWhiteSpaceLine ( bool includeNewLine ) : QuantifiablePattern

Method Details

CSharpCharacterLiteral() public static method

public static CSharpCharacterLiteral ( ) : Pattern
return Pattern

CSharpEscapedTextLiteral() public static method

public static CSharpEscapedTextLiteral ( ) : Pattern
return Pattern

CSharpLineComment() public static method

public static CSharpLineComment ( ) : Pattern
return Pattern

CSharpLiteral() public static method

public static CSharpLiteral ( ) : Pattern
return Pattern

CSharpLiteralOrComment() public static method

public static CSharpLiteralOrComment ( ) : Pattern
return Pattern

CSharpMultilineComment() public static method

public static CSharpMultilineComment ( ) : Pattern
return Pattern

CSharpTextLiteral() public static method

public static CSharpTextLiteral ( ) : Pattern
return Pattern

CSharpVerbatimTextLiteral() public static method

public static CSharpVerbatimTextLiteral ( ) : Pattern
return Pattern

EmailAddress() public static method

public static EmailAddress ( ) : Pattern
return Pattern

EmptyLine() public static method

Returns a pattern that matches an empty line. Neither carriage return nor linefeed is included in the match.
public static EmptyLine ( ) : QuantifiablePattern
return QuantifiablePattern

EmptyLine() public static method

Returns a pattern that matches an empty line, optionally including new line characters. Empty line is defined as a start of line
public static EmptyLine ( bool includeNewLine ) : QuantifiablePattern
includeNewLine bool Indicates whether new line characters should be included in the match.
return QuantifiablePattern

EmptyOrWhiteSpaceLine() public static method

Returns a pattern that matches a line that is empty or contains only whitespace(s). Neither carriage return nor linefeed is included in the match.
public static EmptyOrWhiteSpaceLine ( ) : QuantifiablePattern
return QuantifiablePattern

EmptyOrWhiteSpaceLine() public static method

Returns a pattern that matches a line that is empty or contains only whitespace(s), optionally including new line characters.
public static EmptyOrWhiteSpaceLine ( bool includeNewLine ) : QuantifiablePattern
includeNewLine bool Indicates whether new line characters should be included in the match.
return QuantifiablePattern

FirstLineWithoutNewLine() public static method

Returns a pattern that matches first line of the string. Neither carriage return nor linefeed is included in the match.
public static FirstLineWithoutNewLine ( ) : QuantifiablePattern
return QuantifiablePattern

LeadingTrailingWhiteSpace() public static method

Returns a pattern that matches leading and trailing whitespace of the string (or line if the RegexOptions.Multiline option is applied). A carriage return is not included in the match.
public static LeadingTrailingWhiteSpace ( ) : QuantifiablePattern
return QuantifiablePattern

LeadingWhiteSpace() public static method

Returns a pattern that matches leading whitespace of the string (or line if the RegexOptions.Multiline option is applied).
public static LeadingWhiteSpace ( ) : QuantifiablePattern
return QuantifiablePattern

LineLeadingWhiteSpace() public static method

public static LineLeadingWhiteSpace ( ) : QuantifiablePattern
return QuantifiablePattern

LineTrailingWhiteSpace() public static method

public static LineTrailingWhiteSpace ( ) : QuantifiablePattern
return QuantifiablePattern

LinefeedWithoutCarriageReturn() public static method

Returns a pattern that matches a linefeed that is not preceded with a carriage return.
public static LinefeedWithoutCarriageReturn ( ) : QuantifiablePattern
return QuantifiablePattern

TrailingWhiteSpace() public static method

Returns a pattern that matches trailing whitespace of the string (or line if the RegexOptions.Multiline option is applied). A carriage return is not included in the match.
public static TrailingWhiteSpace ( ) : QuantifiablePattern
return QuantifiablePattern

XmlCData() public static method

public static XmlCData ( ) : Pattern
return Pattern