Take the 2-minute tour ×  Currently I have some theoretically
background in regular expression, but I have almost never used
them.  I am trying to develop some classes for general input
validation, and I have being writing methods without any use of
regular expressions. I recently read this Jeff's article, and
now I am wondering if I should refactor some of the methods to
include regexp inside them.  I thought that regular expressions
were used to build front-ends for applications like parsers and
anything else, but apparently they are used for much more than
that.  I realize that not all validations can or should be done
with regular expressions, but are they a good practice to
validate inputs?  share|improve this question  9 Answers 9  up
vote 4 down vote accepted  Regular expressions are just one way
to match text against a pattern. There are other ways to do the
same thing without using a regex. You shouldn't think of regular
expressions as a buzzword that you must include in your code.
Use whatever tool