1
Answer

parsing regular expression strings

Ask a question
andy

andy

15y
2.8k
1
 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)