I wanted a trigger to work when the users were on two areas of our website. I tried to use a regex to do this. I tried a couple of versions. First a simple one (that works in Python):
portal.somniumtech.com/products|www.somniumtech.com
Then, because of the slightly cryptic comment about only doing a "full" match, I tried:
^https?://(portal.somniumtech.com/products|www.somniumtech.com).*$
In both cases, the trigger never fired.
I worked around this by using the (undocumented) developer mode and using nested conditionals:
"condition": [
"and",
[
"or",
[
"icontains",
"@visitor_page_url",
"portal.somniumtech.com/products"
],
[
"icontains",
"@visitor_page_url",
"www.somniumtech.com"
]
],
That seems to work. But means I can't switch back to the Visual view.
Any idea why the regex doesn't work?