Re: [Perl-unix-users] regex performance

2001-06-14 Thread Christian Schneider
Hi, > > ABc Sun May 20 19:45:30, 2001 XYZ > if you know the exact string your looking for, you can use substr: substr($string, "find_me", lenght_of_find_me) = "find_meD"; Regards, Christian -- Christian Schneider [EMAIL PROTECTED]

Re: [Perl-unix-users] regex performance

2001-06-13 Thread $Bill Luebkert
Dan Jablonsky wrote: > > Hi all, > I remember reading (probably in the Camel book) that > the more $1, $2 and so on you have in a regex the > slower the regex will be executed. It seems any > backreference is taxing performance considerably. > > Is there an alternative? What I am trying to do is

Re: [Perl-unix-users] regex performance

2001-06-13 Thread Grant Hopwood
-start- > Grant Hopwood >at06/13/2001 01:37 PM >-start- PS: ># Concatenation should generally always be faster than substitution which kind of 'slices, dices, and stretches' ># a string. That is, faster when replacing almost all of the string. Grant Hopwood. Valero Energy Corp. (210)37

Re: [Perl-unix-users] regex performance

2001-06-13 Thread Grant Hopwood
-start- > Dan Jablonsky <[EMAIL PROTECTED]> >at06/13/2001 12:22 PM >Is there an alternative? What I am trying to do is >isolate some patterns with each line of a text file >and then make small changes to those pieces and/or >switching the position of some of those pieces. Is it >possible to

[Perl-unix-users] regex performance

2001-06-13 Thread Dan Jablonsky
Hi all, I remember reading (probably in the Camel book) that the more $1, $2 and so on you have in a regex the slower the regex will be executed. It seems any backreference is taxing performance considerably. Is there an alternative? What I am trying to do is isolate some patterns with each line