Today I was extending/cleaning/rewriting my Exception Handling library to take advantage of the new .NET 3.5 features.. It proved to be quite fun, so I started making it more useful, and easy to use.
At some point I decided to change the way I stored all the settings in the configuration file. Before I had my own configuration section, that used the standard
AppSettingsSection class. Simple and fast. But it didn't look clean. All the settings were mixed up together etc etc..
So I created a clean new
sectionGroup with several sections, collections and so on. When I reached the notification e-mail field, I thought that having a validator would be... A lot better :)
Strangely enough, when I added the
RegexStringValidator, the application crashed, telling me my e-mail was not valid against the regular expression..