I am trying to read regex from app.config file
if I try to read lines, it works fine, but if I try to get a regex pattern, it will not accept my pattern
Here is my code
<appSettings>
<add key="regex" value=@"^(?<TicketNum>\w{3}-\d+)\s+(?<Message>.+?)$"></add>
<add key="getString" value="siva"/>;
</appSettings>
Did I miss something?
source
share