C# Class System.Text.RegularExpressions.Regex

Inheritance: ISerializable
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
InfiniteMatchTimeout System.TimeSpan

Protected Properties

Property Type Description
capnames System.Collections.Hashtable
caps System.Collections.Hashtable
capsize int
capslist string[]
factory System.Text.RegularExpressions.RegexRunnerFactory
internalMatchTimeout System.TimeSpan
pattern string
roptions System.Text.RegularExpressions.RegexOptions

Public Methods

Method Description
Escape ( string str ) : string
GetGroupNames ( ) : string[]
GetGroupNumbers ( ) : int[]
GroupNameFromNumber ( int i ) : string
GroupNumberFromName ( string name ) : int
IsMatch ( string input ) : bool
IsMatch ( string input, int startat ) : bool
IsMatch ( string input, string pattern ) : bool
IsMatch ( string input, string pattern, System options ) : bool
IsMatch ( string input, string pattern, System options, System matchTimeout ) : bool
Match ( string input ) : System.Text.RegularExpressions.Match
Match ( string input, int startat ) : System.Text.RegularExpressions.Match
Match ( string input, int beginning, int length ) : System.Text.RegularExpressions.Match
Match ( string input, string pattern ) : System.Text.RegularExpressions.Match
Match ( string input, string pattern, System options ) : System.Text.RegularExpressions.Match
Match ( string input, string pattern, System options, System matchTimeout ) : System.Text.RegularExpressions.Match
Matches ( string input ) : System.Text.RegularExpressions.MatchCollection
Matches ( string input, int startat ) : System.Text.RegularExpressions.MatchCollection
Matches ( string input, string pattern ) : System.Text.RegularExpressions.MatchCollection
Matches ( string input, string pattern, System options ) : System.Text.RegularExpressions.MatchCollection
Matches ( string input, string pattern, System options, System matchTimeout ) : System.Text.RegularExpressions.MatchCollection
Regex ( string pattern )
Regex ( string pattern, System options )
Regex ( string pattern, System options, System matchTimeout )
Replace ( string input, System evaluator ) : string
Replace ( string input, System evaluator, int count ) : string
Replace ( string input, System evaluator, int count, int startat ) : string
Replace ( string input, string replacement ) : string
Replace ( string input, string pattern, System evaluator ) : string
Replace ( string input, string pattern, System evaluator, System options ) : string
Replace ( string input, string pattern, System evaluator, System options, System matchTimeout ) : string
Replace ( string input, string replacement, int count ) : string
Replace ( string input, string replacement, int count, int startat ) : string
Replace ( string input, string pattern, string replacement ) : string
Replace ( string input, string pattern, string replacement, System options ) : string
Replace ( string input, string pattern, string replacement, System options, System matchTimeout ) : string
Split ( string input ) : string[]
Split ( string input, int count ) : string[]
Split ( string input, int count, int startat ) : string[]
Split ( string input, string pattern ) : string[]
Split ( string input, string pattern, System options ) : string[]
Split ( string input, string pattern, System options, System matchTimeout ) : string[]
ToString ( ) : string
Unescape ( string str ) : string

Protected Methods

Method Description
InitializeReferences ( ) : void
Regex ( )
Regex ( System info, System context )
UseOptionC ( ) : bool
UseOptionR ( ) : bool
ValidateMatchTimeout ( System matchTimeout ) : void

Private Methods

Method Description
System ( System si, System context ) : void

Method Details

Escape() public static method

public static Escape ( string str ) : string
str string
return string

GetGroupNames() public method

public GetGroupNames ( ) : string[]
return string[]

GetGroupNumbers() public method

public GetGroupNumbers ( ) : int[]
return int[]

GroupNameFromNumber() public method

public GroupNameFromNumber ( int i ) : string
i int
return string

GroupNumberFromName() public method

public GroupNumberFromName ( string name ) : int
name string
return int

InitializeReferences() protected method

protected InitializeReferences ( ) : void
return void

IsMatch() public method

public IsMatch ( string input ) : bool
input string
return bool

IsMatch() public method

public IsMatch ( string input, int startat ) : bool
input string
startat int
return bool

IsMatch() public static method

public static IsMatch ( string input, string pattern ) : bool
input string
pattern string
return bool

IsMatch() public static method

public static IsMatch ( string input, string pattern, System options ) : bool
input string
pattern string
options System
return bool

IsMatch() public static method

public static IsMatch ( string input, string pattern, System options, System matchTimeout ) : bool
input string
pattern string
options System
matchTimeout System
return bool

Match() public method

public Match ( string input ) : System.Text.RegularExpressions.Match
input string
return System.Text.RegularExpressions.Match

Match() public method

public Match ( string input, int startat ) : System.Text.RegularExpressions.Match
input string
startat int
return System.Text.RegularExpressions.Match

Match() public method

public Match ( string input, int beginning, int length ) : System.Text.RegularExpressions.Match
input string
beginning int
length int
return System.Text.RegularExpressions.Match

Match() public static method

public static Match ( string input, string pattern ) : System.Text.RegularExpressions.Match
input string
pattern string
return System.Text.RegularExpressions.Match

Match() public static method

public static Match ( string input, string pattern, System options ) : System.Text.RegularExpressions.Match
input string
pattern string
options System
return System.Text.RegularExpressions.Match

Match() public static method

public static Match ( string input, string pattern, System options, System matchTimeout ) : System.Text.RegularExpressions.Match
input string
pattern string
options System
matchTimeout System
return System.Text.RegularExpressions.Match

Matches() public method

public Matches ( string input ) : System.Text.RegularExpressions.MatchCollection
input string
return System.Text.RegularExpressions.MatchCollection

Matches() public method

public Matches ( string input, int startat ) : System.Text.RegularExpressions.MatchCollection
input string
startat int
return System.Text.RegularExpressions.MatchCollection

Matches() public static method

public static Matches ( string input, string pattern ) : System.Text.RegularExpressions.MatchCollection
input string
pattern string
return System.Text.RegularExpressions.MatchCollection

Matches() public static method

public static Matches ( string input, string pattern, System options ) : System.Text.RegularExpressions.MatchCollection
input string
pattern string
options System
return System.Text.RegularExpressions.MatchCollection

Matches() public static method

public static Matches ( string input, string pattern, System options, System matchTimeout ) : System.Text.RegularExpressions.MatchCollection
input string
pattern string
options System
matchTimeout System
return System.Text.RegularExpressions.MatchCollection

Regex() protected method

protected Regex ( )

Regex() protected method

protected Regex ( System info, System context )
info System
context System

Regex() public method

public Regex ( string pattern )
pattern string

Regex() public method

public Regex ( string pattern, System options )
pattern string
options System

Regex() public method

public Regex ( string pattern, System options, System matchTimeout )
pattern string
options System
matchTimeout System

Replace() public method

public Replace ( string input, System evaluator ) : string
input string
evaluator System
return string

Replace() public method

public Replace ( string input, System evaluator, int count ) : string
input string
evaluator System
count int
return string

Replace() public method

public Replace ( string input, System evaluator, int count, int startat ) : string
input string
evaluator System
count int
startat int
return string

Replace() public method

public Replace ( string input, string replacement ) : string
input string
replacement string
return string

Replace() public static method

public static Replace ( string input, string pattern, System evaluator ) : string
input string
pattern string
evaluator System
return string

Replace() public static method

public static Replace ( string input, string pattern, System evaluator, System options ) : string
input string
pattern string
evaluator System
options System
return string

Replace() public static method

public static Replace ( string input, string pattern, System evaluator, System options, System matchTimeout ) : string
input string
pattern string
evaluator System
options System
matchTimeout System
return string

Replace() public method

public Replace ( string input, string replacement, int count ) : string
input string
replacement string
count int
return string

Replace() public method

public Replace ( string input, string replacement, int count, int startat ) : string
input string
replacement string
count int
startat int
return string

Replace() public static method

public static Replace ( string input, string pattern, string replacement ) : string
input string
pattern string
replacement string
return string

Replace() public static method

public static Replace ( string input, string pattern, string replacement, System options ) : string
input string
pattern string
replacement string
options System
return string

Replace() public static method

public static Replace ( string input, string pattern, string replacement, System options, System matchTimeout ) : string
input string
pattern string
replacement string
options System
matchTimeout System
return string

Split() public method

public Split ( string input ) : string[]
input string
return string[]

Split() public method

public Split ( string input, int count ) : string[]
input string
count int
return string[]

Split() public method

public Split ( string input, int count, int startat ) : string[]
input string
count int
startat int
return string[]

Split() public static method

public static Split ( string input, string pattern ) : string[]
input string
pattern string
return string[]

Split() public static method

public static Split ( string input, string pattern, System options ) : string[]
input string
pattern string
options System
return string[]

Split() public static method

public static Split ( string input, string pattern, System options, System matchTimeout ) : string[]
input string
pattern string
options System
matchTimeout System
return string[]

ToString() public method

public ToString ( ) : string
return string

Unescape() public static method

public static Unescape ( string str ) : string
str string
return string

UseOptionC() protected method

protected UseOptionC ( ) : bool
return bool

UseOptionR() protected method

protected UseOptionR ( ) : bool
return bool

ValidateMatchTimeout() protected static method

protected static ValidateMatchTimeout ( System matchTimeout ) : void
matchTimeout System
return void

Property Details

InfiniteMatchTimeout public_oe static_oe property

public static System.TimeSpan InfiniteMatchTimeout
return System.TimeSpan

capnames protected_oe property

protected System.Collections.Hashtable capnames
return System.Collections.Hashtable

caps protected_oe property

protected System.Collections.Hashtable caps
return System.Collections.Hashtable

capsize protected_oe property

protected int capsize
return int

capslist protected_oe property

protected string[] capslist
return string[]

factory protected_oe property

protected System.Text.RegularExpressions.RegexRunnerFactory factory
return System.Text.RegularExpressions.RegexRunnerFactory

internalMatchTimeout protected_oe property

protected System.TimeSpan internalMatchTimeout
return System.TimeSpan

pattern protected_oe property

protected string pattern
return string

roptions protected_oe property

protected System.Text.RegularExpressions.RegexOptions roptions
return System.Text.RegularExpressions.RegexOptions