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:
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
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
"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
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
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/
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/
/(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/
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