Re: regular expression vs split

2002-05-19 Thread drieux
On Sunday, May 19, 2002, at 02:30 , Ross Esposito wrote: > I "think" split is compiled only once while regex (as used in the previous > posts) is compiled everytime a new line is to be matched. (you can use qr/ > /) > > Someone fire up Benchmark. I could be wrong :) > > xgunnerx funny you shoul

RE: regular expression vs split

2002-05-19 Thread Ross Esposito
nt: Friday, May 17, 2002 10:31 AM To: Brian; [EMAIL PROTECTED] Subject: RE: regular expression vs split I don't believe that a regex would be faster in an instance like this, but someone please correct me if I'm wrong. It seems that it would add (albeit a very minimal amount) processing

RE: regular expression vs split

2002-05-17 Thread Scot Robnett
t Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Brian [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 10:17 AM To: [EMAIL PROTECTED] Subject: RE: regular expression vs split Curious, but I've always thought that regex was much qui

RE: regular expression vs split

2002-05-17 Thread Brian
Curious, but I've always thought that regex was much quicker then split for situations such as this... I'd always figured that split was basically a (and the regex for this is probably wrong, but you can get the jist of it) /[^($delimiter | end of string)/ with a dumping of the match minus the