C# 클래스 Patterns.Text.RegularExpressions.RegexEvaluator

Defines a default implementation of the IRegexEvaluator interface.
상속: IRegexEvaluator
파일 보기 프로젝트 열기: patterns-group/code-patterns

공개 메소드들

메소드 설명
IsMatch ( string input, CompiledRegex pattern ) : bool

Indicates whether the regular expression finds a match in the input string.

Match ( string input, CompiledRegex pattern ) : Match

Searches the specified input string for the first occurrence of the specified regular expression.

Matches ( string input, CompiledRegex pattern ) : MatchCollection

Searches the specified input string for all occurrences of a specified regular expression.

Replace ( string input, CompiledRegex pattern, string replacement ) : string

In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string.

Split ( string input, CompiledRegex pattern ) : string[]

Splits an input string into an array of substrings at the positions defined by a regular expression pattern.

메소드 상세

IsMatch() 공개 메소드

Indicates whether the regular expression finds a match in the input string.
public IsMatch ( string input, CompiledRegex pattern ) : bool
input string The string to search for a match.
pattern CompiledRegex The regular expression pattern to match.
리턴 bool

Match() 공개 메소드

Searches the specified input string for the first occurrence of the specified regular expression.
public Match ( string input, CompiledRegex pattern ) : Match
input string The string to search for a match.
pattern CompiledRegex The regular expression pattern to match.
리턴 System.Text.RegularExpressions.Match

Matches() 공개 메소드

Searches the specified input string for all occurrences of a specified regular expression.
public Matches ( string input, CompiledRegex pattern ) : MatchCollection
input string The string to search for a match.
pattern CompiledRegex The regular expression pattern to match.
리턴 System.Text.RegularExpressions.MatchCollection

Replace() 공개 메소드

In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string.
public Replace ( string input, CompiledRegex pattern, string replacement ) : string
input string The string to search for a match.
pattern CompiledRegex The regular expression pattern to match.
replacement string The replacement string.
리턴 string

Split() 공개 메소드

Splits an input string into an array of substrings at the positions defined by a regular expression pattern.
public Split ( string input, CompiledRegex pattern ) : string[]
input string The string to search for a match.
pattern CompiledRegex The regular expression pattern to match.
리턴 string[]