- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
07-27-2018 01:49 AM
Hi all,
I want to create a load rule based on a string JS variable lenght, I want to fire the tag when the lenght of this string is equal to 5.
To do this, I try to use the condition "regular expression", and add 5 dots, however the tag it's fired even if the lenght it's more than 5.
How can I create this condition?
Thank you,
Solved! Go to Solution.
07-27-2018 06:46 AM - edited 07-27-2018 06:57 AM
Hey @mike360
So what you need to do is either use ^.....$
or ^.{5,5}$
.
Some good sites to show you what is hapenning/and for testing JS regex:
http://francoislaberge.com/regulex
https://regexper.com/
https://regexr.com/
They both do the same, but the second, says repeat min/max times.
Adrian
07-27-2018 07:53 AM
Copyright All Rights Reserved © 2008-2023