This module provides regular expression matching operations similar to those found in Perl. re module in the python language.
re
01 Syntax
Microsoft.VisualBasic.Language.Python.re
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| FindAll | 1 | Return all non-overlapping matches of pattern in string, as a list of strings. |
| __trimComment | 1 | 假设所有的注释都是由#和一个空格开始起始的 |
03 Members
FindAll(
String, String, RegexOptions)Return all non-overlapping matches of pattern in string, as a list of strings. The string is scanned left-to-right, and matches are returned in the order found. If one or more groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group. Empty matches are included in the result unless they touch the beginning of another match.
Parameters
| Name | Type | Description |
|---|---|---|
pattern | String | 这个会首先被分行然后去除掉python注释 |
input | String | - |
options | RegexOptions | - |
__trimComment(
String)假设所有的注释都是由#和一个空格开始起始的 #
Parameters
| Name | Type | Description |
|---|---|---|
s | String | - |