RegexExtensions
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| 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
| Name | Overloads | Summary |
|---|---|---|
| RegexpTimeout | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| RegexPythonRawString | 2 | 模拟python的raw字符串的正则表达式,多行的 |
05 Members
Regex, StringBuilder, String, String)A helper function for make sub-string replacement
| Name | Type | Description |
|---|---|---|
r | Regex | - |
str | StringBuilder | - |
replacement | String | - |
stringCopy | String | - |
String, String, RegexOptions)Determines whether the beginning of this string instance matches the specified string.
| Name | Type | Description |
|---|---|---|
str | String | The string to compare. |
pattern | String | - |
opt | RegexOptions | - |
true if value matches the beginning of this string; otherwise, false.
String, String, RegexOptions)Determines whether the end of this string instance matches the specified string pattern.
| Name | Type | Description |
|---|---|---|
str$ | String | - |
pattern$ | String | - |
opt | RegexOptions | - |
MatchCollection)Each match its value in the source match collection.
| Name | Type | Description |
|---|---|---|
m | MatchCollection | - |
MatchCollection)Gets the matched strings from the regex match result as source
| Name | Type | Description |
|---|---|---|
source | MatchCollection | - |
MatchCollection, Func(Of String, ``0))Converts the Regex string pattern match results to the objects. (这个函数是非并行化的,所以不需要担心会打乱顺序)
| Name | Description |
|---|---|
T |
| Name | Type | Description |
|---|---|---|
source | MatchCollection | - |
[ctype] | Func(Of String, ``0) | The object parser |
String, String, RegexOptions)The enitre string input equals to the pattern's matched.
| Name | Type | Description |
|---|---|---|
s | String | - |
pattern | String | - |
String, Regex)The enitre string input equals to the pattern's matched.
| Name | Type | Description |
|---|---|---|
s | String | - |
pattern | Regex | - |
String)模拟python语言之中的从raw string构建正则表达式
| Name | Type | Description |
|---|---|---|
raw$ | String | - |
String, String, RegexOptions)函数返回以1为底的位置,当找不到的时候会返回零
| Name | Type | Description |
|---|---|---|
str$ | String | - |
pattern$ | String | - |
opt | RegexOptions | - |
模拟python的raw字符串的正则表达式,多行的
MatchCollection, Func(Of String, T))MatchCollection, Func(Of String, T))