Selector issue Spaces

Do you have any suggestions for ignoring spaces before and after a variable without using *? I believe this can be accomplished with regex. How can I build a selector using regex when a variable is already present, while ignoring spaces before and after the variable?"

Hi @Sai17 try the following selector

<webctrl tag=‘TD’ aaname=‘^\s*{{variable}}\s*$’ matching:aaname=‘regex’ />

image
I am attaching image as it does not seem to be visible

As for the case of variable itself has spaces make a trim before in an assign before using it in the selector

i tried it. still its not selecting

Have you checked if you have uppercase issue, after trimming the variable?

In the selector, there is an issue where there are additional characters after the variable, so I think we need to use * at the end, and use space regex before the variable