This macro searches the specified fields of the current email message, appointment, or meeting for the first occurrence of the specified regular expression and inserts the specified text value into the current macro position. If no occurrence is found, the specified text value2 is inserted into the current macro position.
~%RegexMatch{
"fields":["from", "to", "cc", "bcc", "subject", "location",
"recipient_first_name" , "recipient_full_name" , "recipient_last_name" ,
"sender_first_name" , "sender_full_name" , "sender_last_name" ,
"body"],
"regex":"regexvalue",
"value":"value",
[ "value2":"value" ] // empty by default
}
~%RegexMatch{"fields":["body"],"regex":"@company.com","value":"the email address provided","value2":""}
Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!