matchRegExp matchRegExp

如果第一個引數中的字串符合第二個引數中的規則運算式,則傳回true。 如需詳細資訊,請參閱 此頁面.

類別

字串

函式語法

matchRegExp(<parameters>)

參數

參數
類型
字串
字串
regexp
字串

簽章與傳回的型別

matchRegExp(<string>,<string>)

傳回布林值。

範例

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

傳回true。

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