Use regular expression in browser monitor to match a text value is greater than 0

I have created a browser monitor which needs a regular expression to match the text value in DOM is greater than zero.

This is the text appeared in the DOM

“Found 100 Messages”. I want to check a condition if Found “>0” Messages then pass the validation check using regular expression

Ei,

would this regex work for you?

Found\s[1-9][0-9]*\sMessages

You can configure that by editing the Browser monitor > Recorded clickpath > Click on the Synthetic events that is loading the page with the DOM element, check the regex box and then proceed with writing the string:

let me know if this helped. Have a great day!

Regards,

Yann

Hi @dariniv! Is y_buccellato’s workaround helping to find a solution for your issue?