nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / RegexExtensions

RegexExtensions

Full name Microsoft.VisualBasic.RegexExtensions Assembly Microsoft.VisualBasic.Runtime Members 15

01 Syntax

Microsoft.VisualBasic.RegexExtensions

02 Methods

NameOverloadsSummary
Replace 1 A helper function for make sub-string replacement
StartsWith 1 Determines whether the beginning of this string instance matches the specified string.
EndsWith 1 Determines whether the end of this string instance matches the specified string pattern.
EachValue 2
ToArray 2
ToArray 1 Converts the Regex string pattern match results to the objects.
IsPattern 2 The enitre string input equals to the pattern's matched.
PythonRawRegexp 1 模拟python语言之中的从raw string构建正则表达式
Locates 1 函数返回以1为底的位置,当找不到的时候会返回零

03 Properties

NameOverloadsSummary
RegexpTimeout 1

04 Fields

NameOverloadsSummary
RegexPythonRawString 2 模拟python的raw字符串的正则表达式,多行的

05 Members

method Replace #
Replace(Regex, StringBuilder, String, String)

A helper function for make sub-string replacement

Parameters
NameTypeDescription
rRegex

-

strStringBuilder

-

replacementString

-

stringCopyString

-

method StartsWith #
StartsWith(String, String, RegexOptions)

Determines whether the beginning of this string instance matches the specified string.

Parameters
NameTypeDescription
strString

The string to compare.

patternString

-

optRegexOptions

-

Returns

true if value matches the beginning of this string; otherwise, false.

method EndsWith #
EndsWith(String, String, RegexOptions)

Determines whether the end of this string instance matches the specified string pattern.

Parameters
NameTypeDescription
str$String

-

pattern$String

-

optRegexOptions

-

method EachValue overload 2 #
EachValue(MatchCollection)

Each match its value in the source match collection.

Parameters
NameTypeDescription
mMatchCollection

-

method ToArray overload 2 #
ToArray(MatchCollection)

Gets the matched strings from the regex match result as source

Parameters
NameTypeDescription
sourceMatchCollection

-

method ToArray #
ToArray``1(MatchCollection, Func(Of String, ``0))

Converts the Regex string pattern match results to the objects. (这个函数是非并行化的,所以不需要担心会打乱顺序)

Type Parameters
NameDescription
T
Parameters
NameTypeDescription
sourceMatchCollection

-

[ctype]Func(Of String, ``0)

The object parser

method IsPattern #
IsPattern(String, String, RegexOptions)

The enitre string input equals to the pattern's matched.

Parameters
NameTypeDescription
sString

-

patternString

-

method IsPattern overload 2 #
IsPattern(String, Regex)

The enitre string input equals to the pattern's matched.

Parameters
NameTypeDescription
sString

-

patternRegex

-

method PythonRawRegexp #
PythonRawRegexp(String)

模拟python语言之中的从raw string构建正则表达式

Parameters
NameTypeDescription
raw$String

-

method Locates #
Locates(String, String, RegexOptions)

函数返回以1为底的位置,当找不到的时候会返回零

Parameters
NameTypeDescription
str$String

-

pattern$String

-

optRegexOptions

-

field RegexPythonRawString #
RegexPythonRawString

模拟python的raw字符串的正则表达式,多行的

field RegexPythonRawString overload 2 #
RegexPythonRawString
property RegexpTimeout #
RegexpTimeout
method EachValue #
EachValue(MatchCollection, Func(Of String, T))
method ToArray #
ToArray(MatchCollection, Func(Of String, T))