Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Launch: Regex is not working as expected in rule condition

Saravanan_Dharmaraj
Level 2
Level 2

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. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies
Saravanan_Dharmaraj
Level 2
Level 2

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

Charles_Thirupathi
Level 3
Level 3

@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.