Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- regular expression
January 21, 2007, 2:06 am
rate this thread
Re: regular expression
Yes, that's a good point. In some situations it may be better to use
str_replace, substring, or similar functions.
For me, the best way to learn was just trying to apply regex in
projects I was already doing. At first, I spent a lot of time
debugging, until I eventually started getting the hang of them (now one
of my favorite features in a language). Tutorials that demonstrated
with strings like "aaabc" often made it harder for me to grasp.
However, http://regularexpressions.info is a pretty good reference