Launch: Regex is not working as expected in rule condition | Community
Skip to main content
Saravanan_Dharmaraj
Community Advisor
Community Advisor
March 24, 2021

Launch: Regex is not working as expected in rule condition

  • March 24, 2021
  • 2 replies
  • 2426 views

I have a condition to execute in launch rule for "path without query string" condition type. The regex is simple to pass for all URLs except the url with specific path. Negative condition. Regex is (www)?silabs.com\/(?!developers\/usb-to-uart-bridge-vcp-drivers) and tested inside the launch itself using test button while adding the condition. After publishing , the condition is preventing the rule to execute for all the urls not just to mentioned path. 

Does the regex feature works in launch? i have tested my regex condition outside of launch also, works fine. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
March 24, 2021

Added Exception condition instead of complex Regex negative condition and it worked.

Charles_Thirupathi
Level 4
March 28, 2021

@saravanan_dharmaraj Condition Type you selected is "Page Without Query String" but the Regex you wrote is for complete URL(Which includes domain), so this regex will never match any result since its looking for the match within path value . If you want to Exclude same paths you can simply provide the path value alone.