By mswatcher
via codeproject.com
Published: Sep 30 2008 / 14:58
Regular expressions are notorious for being confusing to read and understand. The longer the regular expression, the higher the chance of making a mistake in it, and the more difficult it is to debug or modify. Of course, every regular expression would be commented thoroughly. It would still suffer from being a single long line of characters.
Comments
dragmire replied ago:
I understand the objection, but I think the point of regular expressions is to be succinct and compatible. Otherwise, why not just write a regular replace?
Experience with regular expressions usually leads to the ability to decipher the gobbledygook rather quickly, as you would with any other language. This approach actually makes it a bit tougher to maintain for those that do understand the expressions.
Voters For This Link (13)
Voters Against This Link (1)