reg_match 函数
判断正则表达式是否匹配文本。
语法
StringTools:-RegMatch(pattern, text)RegMatch(pattern, text)reg_match(pattern, text)
参数与选项
pattern | 正则表达式模式。 |
|---|---|
text | 要测试的文本。 |
示例
- 模式匹配
StringTools:-RegMatch('^[A-Z]+
判断正则表达式是否匹配文本。
StringTools:-RegMatch(pattern, text)RegMatch(pattern, text)reg_match(pattern, text)pattern | 正则表达式模式。 |
|---|---|
text | 要测试的文本。 |
StringTools:-RegMatch('^[A-Z]+