Re: Tony or Anthony

2007-10-11 Thread Venkat Saranathan
http://perldoc.perl.org/Benchmark.html -- with warm regards, Venkat Saranathan Gulf Breeze Software. On 10/10/07, newBee <[EMAIL PROTECTED]> wrote: > > On Oct 9, 8:18 pm, [EMAIL PROTECTED] (Jeff Pang) wrote: > > 2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > > > > > No need for (), so you can write:

Re: Tony or Anthony

2007-10-11 Thread Anuradha Uduwage
Thanks alot Chas... this is a great example Anu On 10/11/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > > On 10/10/07, newBee <[EMAIL PROTECTED]> wrote: > > On Oct 9, 8:18 pm, [EMAIL PROTECTED] (Jeff Pang) wrote: > > > 2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > > > > > > > No need for (), so yo

Re: Tony or Anthony

2007-10-11 Thread Chas. Owens
On 10/10/07, newBee <[EMAIL PROTECTED]> wrote: > On Oct 9, 8:18 pm, [EMAIL PROTECTED] (Jeff Pang) wrote: > > 2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > > > > > No need for (), so you can write: > > > > > m/tony|anthony/i > > > > or, > > /tony/i || /anthony/i > > > > this is faster than /tony|anth

Re: Tony or Anthony

2007-10-10 Thread Dr.Ruud
"Jeff Pang" schreef: > Dr.Ruud: >> No need for (), so you can write: >> >> m/tony|anthony/i > > or, > /tony/i || /anthony/i > > this is faster than /tony|anthony/i. Faster for what? For one, it takes longer to type. With which version of Perl, and with which exact test data set did you do your

Re: Tony or Anthony

2007-10-10 Thread newBee
On Oct 9, 8:18 pm, [EMAIL PROTECTED] (Jeff Pang) wrote: > 2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > > > No need for (), so you can write: > > > m/tony|anthony/i > > or, > /tony/i || /anthony/i > > this is faster than /tony|anthony/i. Thanks to all you guys... after I published the question I di

Re: Tony or Anthony

2007-10-09 Thread Jeff Pang
2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > No need for (), so you can write: > > m/tony|anthony/i > or, /tony/i || /anthony/i this is faster than /tony|anthony/i. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Tony or Anthony

2007-10-09 Thread Dr.Ruud
yitzle schreef: > /(tony|anthony)/i > /(?:tony|anthony)/i No need for (), so you can write: m/tony|anthony/i -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Tony or Anthony

2007-10-09 Thread yitzle
/(tony|anthony)/i /(?:tony|anthony)/i This RegEx will locate a tony, Tony, TONY, Anthony, etc (case insensitive) anywhere in the string. Is that what you need? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Tony or Anthony

2007-10-09 Thread John W. Krahn
newBee wrote: Hi Guys... Hello, I am new to regular expression and perl. I want right and regular expression to catch Tony or Anthony so I did it something like this.. [tony?anthony]. It will be great if some could tell me how to optimize this to good regular expression. I am writing this in

Tony or Anthony

2007-10-09 Thread newBee
Hi Guys... I am new to regular expression and perl. I want right and regular expression to catch Tony or Anthony so I did it something like this.. [tony?anthony]. It will be great if some could tell me how to optimize this to good regular expression. I am writing this in perl. Thanks in advance