RE: [PHP] trying to match the front and end...
| From: | Dan Joseph | Date: | Fri, 08 Aug 2003 18:02:07 +0000 |
| Subject: | RE: [PHP] trying to match the front and end... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158907@lists.php.net to get a copy of this message | ||
Hi,
> Not tested, mind you. I know what you're saying, too. How is _all_ of
> that code better(worse?) than one simple regex? Benchmark it and see.
> You'll be surprised how a lot more code with simple string functions
> will be considerably faster than a complex regular expression. Your
> results may vary, though. :)
Ahh, you do have a very valid point there.
I tweaked your regex as stated in your follow up post, and mike's, they
both work now. I'm gonna test a non-regex method. Performance is a factor
in this. I'll post my results in a day or two when I get it situated.
Thanks to you both!
-Dan Joseph