Relevance sub error on regex

This seems odd. The relevance itself is fine, but why does this fail in actionscript?

Command failed (Relevance substitution error.) if { hostname as lowercase = regex “([a-z]{2}[0-9]{3}.*.[a-z]{2}[0-9]{3}.domain.com)” } (action:3740087)

Do you need to escape the curly brackets? Every time you have a {} inside of your relevance substitution, add a second { to each {

http://www-01.ibm.com/support/docview.wss?uid=swg21506259

1 Like

Close… but reverse that:

if { hostname as lowercase = regex "([a-z]{2}}[0-9]{3}}.*.[a-z]{2}}[0-9]{3}}.domain.com)" }

I needed to add extra “}”

Thanks!

1 Like