Re: [PHP] removing text from a string
- From: lists@xxxxxxxxx (Jim Lucas)
- Date: Thu, 06 Nov 2008 07:57:59 -0800
Thodoris wrote:
Ashley Sheridan a écrit :
Thats a lot of code when a couple of lines and a regex will do ;)
Maybe because the use of the regex is pointless here. A bazooka to
kill the fly ? :)
I couldn't agree more. Not to mention that they are probably slower.
PS Don't get me wrong I like perl and pcre but it is pointless here.
Personal choice, and yes my testing has proven that a regex is faster then the multiple function calls or if conditions needed to accomplish the same
thing.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
.
- Follow-Ups:
- Re: [PHP] removing text from a string
- From: Thodoris
- RE: [PHP] removing text from a string
- From: "Boyd, Todd M."
- Re: [PHP] removing text from a string
- References:
- Re: [PHP] removing text from a string
- From: Wolf
- Re: [PHP] removing text from a string
- From: Ashley Sheridan
- Re: [PHP] removing text from a string
- From: Lupus Michaelis
- Re: [PHP] removing text from a string
- From: Thodoris
- Re: [PHP] removing text from a string
- Prev by Date: Re: [PHP] removing text from a string
- Next by Date: RE: [PHP] removing text from a string
- Previous by thread: Re: [PHP] removing text from a string
- Next by thread: RE: [PHP] removing text from a string
- Index(es):
Relevant Pages
|