firstMatch method
查找字符串中第一个匹配正则表达式的子字符串
返回一个RegExpMatch对象,如果没有匹配则返回null
Implementation
RegExpMatch? firstMatch(String regexp) {
return RegExp(regexp).firstMatch(this);
}
查找字符串中第一个匹配正则表达式的子字符串
返回一个RegExpMatch对象,如果没有匹配则返回null
RegExpMatch? firstMatch(String regexp) {
return RegExp(regexp).firstMatch(this);
}