# Highlighting multiple occurrences

**URL:** <https://forum.xbench.net/t/highlighting-multiple-occurrences/567>\
**Category:** Technical Support\
**Created:** [January 23, 2020, 6:00pm UTC](https://forum.xbench.net/t/highlighting-multiple-occurrences/567 "2020-01-23T18:00:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![awijas](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/awijas/32/16_2.png) [@awijas](https://forum.xbench.net/u/awijas)\
**Post date:** [January 23, 2020, 6:00pm UTC](https://forum.xbench.net/t/highlighting-multiple-occurrences/567/1 "2020-01-23T18:00:22Z")

</div>

I’m looking for any occurrence of number-space-Mbps, e.g. “1000 Mbps”.  
Regexp:  
[0-9][:space:]Mbps  
or  
[0-9]+[:space:]Mbps  
It highlights only the first occurrence, but I would like to highlight all occurrences.  
No regexps I tried seem to work, e.g. [http://glbl.me/1neo](http://glbl.me/1neo)

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [January 24, 2020, 11:48am UTC](https://forum.xbench.net/t/highlighting-multiple-occurrences/567/2 "2020-01-24T11:48:34Z")

</div>

To find multiple occurrences, it is necessary to create several checklist entries.

For instance:

Source: `"(<[0-9]+>)=1[:space:]Mbps.+(<[0-9]+)=2[:space:]Mbps"`  
Target: `-@1[:space:]Mbps OR -@2[:space:]Mbps`  
Search mode: Regular Expressions  
PowerSearch: On

This regular expression will find all segments that contain at least two occurrences in source but one of them is missing in target.

To find segments with 3 occurences, you would run the following one:

Source: `"(<[0-9]+>)=1[:space:]Mbps.+(<[0-9]+)=2[:space:]Mbps.+(<[0-9]+)=3[:space:]Mbps"`  
Target: `-@1[:space:]Mbps OR -@2[:space:]Mbps OR -@3[:space:]Mbps`  
Search mode: Regular Expressions  
PowerSearch: On

You can find more information on regex syntax at [https://docs.xbench.net/user-guide/regular-expressions](https://docs.xbench.net/user-guide/regular-expressions).
