Message.getRegExMatchesByName method (apps for Office)
Published: February 26, 2013
Returns string values that match the named regular expression defined in the manifest XML file.
var matches = Office.context.mailbox.item.getRegExMatchesByName(name);
A list of strings containing the strings that match the regular expression defined in the manifest XML file.
The getRegExMatchesByName method returns the strings that match the regular expression defined in the ItemHasRegularExpressionMatch rule element in the manifest XML file with the specified RegExName element value.
If you specify an ItemHasRegularExpressionMatch rule on the body property of an item, the regular expression should further filter the body and should not attempt to return the entire body of the item. Using a regular expression such as .* to obtain the entire body of an item does not always return the expected results.
|
Supported clients |
Outlook 2013 and Outlook Web App |
|
Library |
Outlook-15.js, OutlookWebApp-15.js |
|
Namespace |
Office |