How to write regex expression on selector for OR expression!

Hi guys, I’m trying to use regex expression and it gives me an error. Where am I wrong? I saw the forum and they use it this way.


Captura

I need to select this two attributes

class='z-calendar-cell z-calendar-weekday z-calendar-selected'
class='z-calendar-cell z-calendar-weekend'

Thanks!!!

Hi,

For now, can you try the following?

class='(.*selected)|(.*weekend)'

OR

class='(.*selected.*)|(.*weekend.*)'

Regards,

thanks for the reply. I tried, but it doesn’t work for me


Is the expression okay? Because the word ‘matching’ does not change color
Captura

Hi,

We need to use : (colon) instead of dot, as the following. Can you try this?

matching:class

Regards,

We can even pass variables with value to the same CLASS ATTRIBUTE based on a condition
Say for example in IF activity you can set a condition and pass the value to that variable

Then use the same string variable in selector attribute

For more details

Cheers @carlos_sabino