<div>Hello,</div>
<div>&nbsp;</div>
<div>I want to use a pattern matcing (regular expression) inside &quot;if loop&quot;&nbsp;such that if it will find &quot;<strong>MBytes</strong>&quot; and <strong>&quot;Mbits/sec&quot;</strong>&nbsp;both <strong>at a time&nbsp;</strong>
regardless of there position in a particular string ,then only it executes code inside &quot;if block&quot;.</div>
<div>&nbsp;</div>
<div>for example if my string is &nbsp;<strong>&quot;[904]&nbsp; 1.0- 2.0 sec&nbsp; 1.19 MBytes&nbsp; 10.0 Mbits/sec&nbsp; 2.345 ms&nbsp;&nbsp;&nbsp; 0/&nbsp; 850 (0%)&quot;</strong> then if&nbsp;condition evalutes to TRUE and code inside it will be executed.</div>
<div>&nbsp;</div>
<div>If my string is <strong>&quot;Server listening on UDP port 5001&quot;</strong> then if condition evaluates to False and code inside it will be not executed.</div>
<div>&nbsp;</div>
<div>Can anybody help?</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Govind</div>