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

**URL:** <https://community.dynatrace.com/t/use-regular-expression-in-browser-monitor-to-match-a-text-value-is-greater-than-0/36858>\
**Category:** Synthetic Monitoring\
**Tags:** browser-monitors\
**Created:** [October 11, 2022, 3:51pm UTC](https://community.dynatrace.com/t/use-regular-expression-in-browser-monitor-to-match-a-text-value-is-greater-than-0/36858 "2022-10-11T15:51:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dariniv](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dariniv](https://community.dynatrace.com/u/dariniv)\
**Post date:** [October 11, 2022, 3:51pm UTC](https://community.dynatrace.com/t/use-regular-expression-in-browser-monitor-to-match-a-text-value-is-greater-than-0/36858/1 "2022-10-11T15:51:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [October 13, 2022, 12:38pm UTC](https://community.dynatrace.com/t/use-regular-expression-in-browser-monitor-to-match-a-text-value-is-greater-than-0/36858/2 "2022-10-13T12:38:00Z")

</div>

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:

 ![y_buccellato_0-1665664639078.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fd6d03fc8cb0d464db7b609639fa79d18515e798.png)

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

Regards,

Yann

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [December 19, 2022, 1:16pm UTC](https://community.dynatrace.com/t/use-regular-expression-in-browser-monitor-to-match-a-text-value-is-greater-than-0/36858/3 "2022-12-19T13:16:40Z")

</div>

Hi&nbsp;[@dariniv](https://community.dynatrace.com/user/54496)! Is y\_buccellato’s workaround helping to find a solution for your issue?
