`enter code here`I am looking for a sting that occurs 5 times. (this is my string) I want to use an alerting system to see if this string is present 5 times, but not sequentially. If it occurs 5 times all is happy if it occurs less its not happy. 

Test doc 

```
this is my string a bunch of text this is my string even more text this is my string more text   blah blah blah this is my string and we are almost there this is my string

If I use (.this.is.my.string){5} it works on the following data
this is my string this is my string this is my string this is my string this is my string

```

However if I have a large space between each string (filled with other text) I cannot find it. I have tried greedy and non greedy and it doesnt help. This string when in production will be search HTML Source code. 

This is a snip of the source code The string I am searching for is div class='proxy' I need to verify it is present 5 times. 

```
<div class='proxy'><p class='proxyname'>DefaultRemoteProxy (version : 2.41.0)<p class='proxyid'>id : 192.168.0.180:5555, OS : VISTA</p><div     class='tabs'><ul><li class='tab' type='browsers'><a title='test slots' href='#'>Browsers</a></li><li class='tab' type='config'><a title='node     configuration' href='#'>Configuration</a></li></ul></div><div class='content'><div type='browsers' class='content_detail'><p class='protocol'     >WebDriver</p><p>v:34<img src='/grid/resources/org/openqa/grid/images/chrome.png' width='16' height='16' title='{seleniumProtocol=WebDriver,     platform=VISTA, browserName=chrome, maxInstances=1, version=34}' />
</p><p>v:5<img src='/grid/resources/org/openqa/grid/images/safari.png' width='16' height='16' title='{seleniumProtocol=WebDriver, platform=VISTA, browserName=safari, maxInstances=1, version=5}' />
</p><p>v:10<img     src='/grid/resources/org/openqa/grid/images/internet_explorer.png' width='16' height='16' title='{seleniumProtocol=WebDriver, platform=VISTA, browserName=iexplore, maxInstances=1, version=10}' />
</p><p>v:28<img src='/grid/resources/org/openqa/grid/images/firefox.png' width='16' height='16' title='{seleniumProtocol=WebDriver, platform=VISTA, browserName=firefox, maxInstances=1, version=28}' />
</p></div><div type='config' class='content_detail'><p>nodeConfig:node-config-service.json</p><p>port:5555</p><p>servlets:[] /p><p>host:192.168.0.180</p><p>cleanUpCycle:5000</p><p>browserTimeout:0</p><p>hubHost:seleniumgrid2.domain.com</p><p>registerCycle:5000</p><p>capabilityM    atcher:org.openqa.grid.internal.utils.DefaultCapabilityMatcher</p><p>newSessionWaitTimeout:-    1</p><p>url:192.168.0.180:5555</p><p>remoteHost:192.168.0.180:5555</p><p>prioritizer:null</p><p>register:true</p><p>throwOnCapabilityNotPresent:true</p><p    >nodePolling:5000</p><p>proxy:org.openqa.grid.selenium.proxy.DefaultRemoteProxy</p><p>maxSession:5</p><p>role:node</p><p>jettyMaxThreads:-    1</p><p>hubPort:4444</p><p>timeout:300000</p></div></div></div></div><div id='rightColumn'>

```