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