andy

andy

  • NA
  • 10
  • 0

parsing regular expression strings

Jun 24 2009 2:52 PM
 want to parse the regular expressions and send the result string to database to query the result. Means if i get the
value "^abc" should return the value "%abc"
"^abc$" should return "abc"
"\^s" should return "%^s"
^XYZ\.com$ should return "%XYZ.com"
i have some more expressions like this supported by most of regular expression process engines.
Is there any predined function to do this in c# or sql server?
Please advice me.
Thanks

Answers (1)