|  | Posted by Rik on 05/09/06 01:42 
robert wrote:> "Juby" <jubydoo@gmail.com> wrote in message
 > news:1147109699.582707.192550@u72g2000cwu.googlegroups.com...
 >> I remembered the other thing I was going to ask, do you know of any
 >> good web pages to learn regular expressions from?  I've found one or
 >> two, and I've picked up a thing or two, but as you can tell, I'm
 >> still pretty shaky with it.
 >
 >
 > here's just one:
 >
 > http://www.evolt.org/article/rating/20/22700/
 >
 > it's pretty good.
 
 http://www.regular-expressions.info/ was a lot of help for me.
 
 > btw, don't let people pffff you when you suggest using regular
 > expressions...they probably just don't know how to use them or how
 > flexible/powerful they are.
 
 Flexibility is open for datate, as long as the requirements don't change,
 only the "input", regexes do the job. Rewriting a regex when the
 requirements change is often a terrible job. Certainly with the bigger ones,
 commenting or documenting what it is exactly what they do, and/or using a
 regex explainer tool is needed to do it in a limited amount of time without
 rewriting the whole damn thing.
 
 > and on the flip side of that coin, if you
 > can easily parse a string using more standard (and inherently faster)
 > php string routines (i.e. substr, str_replace, explode, etc.), then
 > by all means use those first.
 
 Indeed.
 
 Grtz,
 --
 Rik Wasmus
  Navigation: [Reply to this message] |