C# Class TemplNET.TemplRegex

Represents a regular expression for a placeholder, given a supplied prefix
Datei anzeigen Open project: CPonty/templ-dot-net Class Usage Examples

Public Properties

Property Type Description
Pattern System.Text.RegularExpressions.Regex
Prefix string

Public Methods

Method Description
TemplRegex ( string prefix ) : System.Text.RegularExpressions

Create a regular expression for a placeholder, given the supplied prefix

Text ( string body ) : string

Generates placeholder for the given body: string "{prefix:body}"

Private Methods

Method Description
BuildPattern ( string prefix ) : Regex

Method Details

TemplRegex() public method

Create a regular expression for a placeholder, given the supplied prefix
public TemplRegex ( string prefix ) : System.Text.RegularExpressions
prefix string
return System.Text.RegularExpressions

Text() public method

Generates placeholder for the given body: string "{prefix:body}"
public Text ( string body ) : string
body string
return string

Property Details

Pattern public_oe property

public Regex,System.Text.RegularExpressions Pattern
return System.Text.RegularExpressions.Regex

Prefix public_oe property

public string Prefix
return string