.NET Questions (CLOSED)Questions and Answers on any aspect of .NET. Now closed. |
||
|
This discussion group is now closed.
Have a question about .NET development? Try stackoverflow.com, a worldwide community of great developers asking and answering questions 24 hours a day. The archives of .NET Questions contain years of Q&A. Even older .NET Questions are still online, too. |
Hey guys,
I have to save some application-wide regular expressions. I'm not able to save these string values in the Web.config appsettings because the regex values have special characters (like double-quotes), which make it difficult to save them as XML strings. Is there a way to work-around this, or maybe store the regex values elsewhere, so that they are available application-wide and can be edited easily without compiling the code. Any thoughts?
Chacha Wednesday, April 16, 2008
You could encode it.... but you can avoid the issue by putting these "configurable regular expressions" in a plain old text file (eg old school ini files). You can cache the expressions and update the cache via a cache dependency on that file.
|
|
Powered by FogBugz


