matchRegExp matchRegExp

如果第一个参数中的字符串与第二个参数中的正则表达式匹配,则返回true。 有关更多信息,请参阅 此页面.

类别

字符串

函数语法

matchRegExp(<parameters>)

参数

参数
类型
字符串
字符串
regexp
字符串

签名和返回的类型

matchRegExp(<string>,<string>)

返回布尔值。

示例

matchRegExp("username@adobe.com", "*adobe")

返回真。

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9