Need help with regex / Notification on Statusbar
Posted: 06 Sep 2017 19:57
I am trying to set up a new trigger for Notification on Statusbar Displayed, matching on Text. I am able to get it to match on 'contains text' but not matches regex. I have tested the regex, and am able to fully match the string. I'm sure I'm just entering it incorrectly (I'm just putting the regex on the line). The goal is to alert me when an email comes in with a fairly specific subject. The text I am trying to match is:
Urgent Ticket Notification (xxxxx - Open)
Where xxxxx = some integer. For example,
Urgent Ticket Notification (17001 - Open)
The regex I am using is:
^Urgent\sTicket\sNotification\s\(\d+\s-\sOpen\)
I am matching the beginning of the line because I don't want to get a match if someone forwards me the email, for example:
FW: Urgent Ticket Notification (xxxxx - Open)
Can someone tell me what I'm doing wrong and/or if there's a better regex I can use?
Thanks!
Urgent Ticket Notification (xxxxx - Open)
Where xxxxx = some integer. For example,
Urgent Ticket Notification (17001 - Open)
The regex I am using is:
^Urgent\sTicket\sNotification\s\(\d+\s-\sOpen\)
I am matching the beginning of the line because I don't want to get a match if someone forwards me the email, for example:
FW: Urgent Ticket Notification (xxxxx - Open)
Can someone tell me what I'm doing wrong and/or if there's a better regex I can use?
Thanks!