Re: [Tutor] Matching string

2007-02-27 Thread Jerry Hill
On 2/27/07, govind goyal <[EMAIL PROTECTED]> wrote: > Hello, > > I want to use a pattern matcing (regular expression) inside "if loop" such > that if it will find "MBytes" and "Mbits/sec" both at a time regardless of > there position in a particular string ,then only it executes code inside "if >

Re: [Tutor] Matching string

2007-02-27 Thread Kent Johnson
govind goyal wrote: > Hello, > > I want to use a pattern matcing (regular expression) inside "if > loop" such that if it will find "*MBytes*" and *"Mbits/sec"* both *at a > time * regardless of there position in a particular string ,then only it > executes code inside "if block". > > for exa

[Tutor] Matching string

2007-02-27 Thread govind goyal
Hello, I want to use a pattern matcing (regular expression) inside "if loop" such that if it will find "*MBytes*" and *"Mbits/sec"* both *at a time *regardless of there position in a particular string ,then only it executes code inside "if block". for example if my string is *"[904] 1.0- 2.0 s