Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 storing regex in sql

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-06-28 : 10:39:19
selim writes "I store regular expressions like @"\b\d{4}\b" in SQL 2000. when I query the tables, the regular expression is displayed correctly.

However, when I read in with a sqldatareaser in my C# code (by getString()) I get "@\"\\b\\d{4}\\b\"" and of course the regex does not work?

Any help around this would be very much appreciated

~selim"
   

- Advertisement -