Posted by Carl Vondrick on 08/10/06 06:45
Chung Leong wrote:
> Yes, regular expression is arguably the most useful tool in PHP. You
> wouldn't have truly mastered PHP if you hadn't mastered regexp.
Regular expressions are useful -- I'll give you that -- but I think it's
a little much to say that they are the _most_ useful. Their only
practical use is in highly specialized things, such as validating an
email or writing a parsing engine. My day-to-day use of regex is very
limited and I consider myself a power-user. In email validation regular
expressions make sense, but in testing if something is an integer --
that's going a little overboard.
Carl
Navigation:
[Reply to this message]
|