>Agreed. However, how much do you value maintainability? Enough to sacrifice performance? I read once that using Regular Expressions was more expensive than rolling your own validation methods. I tested it and indeed it was, but having to maintain that much more code was the killer for me, so I went back to Regular Expressions.If I had to choose between code in a method and a Regular Expression, I would almost *always* choose the code. Regular Expressions are just a bear to read, IMHO. Of course, then I have to say "it all depends", naturally. ;-)
~~Bonnie