Regex condition not working

Hi, I’m trying to monitor phone numbers in a listings site. I’m trying to get notified only when the phone numbers start with 6 or 7 and I’m using this Regex:

^[67](?:\s*\d){8}$

but it doesn’t work. I’m being notified on all changes. Can anyone help please?

Hey @maikelnait, the regular expression appears to be a bit too strict. It will match something in the text only if that is exactly 9 chars long because of ^ and $. Can you try the following variation using word boundary instead? This is assuming that there are many phone numbers in the page.

\b[67](?:\s*\d){8}\b

Thanks for the reply. I added set the condition to “any” instead to “all”, and also added the regex function on the bottom right box in the selection mode and now it’s working with my regex function. But I still have a problem: I’m not receiving email notifications, ¿Does anyone know why?

One more thing: Is there a way to add the listing link to the notification so I don’t have to go back to the listing site and search for the listing?

Couple of quick questions:

  1. Are changed being stored in change history?
  2. If yes, does removing the condition trigger the email action? Do other actions trigger?