Is there any way to extract the matched strings by using Regex in T-SQL(SQL Server 2005)?
For example:
Welcome [CT Name=”UserName” /],
We hope that you will enjoy our services and your subscription will be expired on [CT Name=”ExpiredDate” /].
I would like to extract the custom tokens in tabular format as follows:
[CT Name="UserName" /]
[CT Name="ExpiredDate" /]
Thanks for your suggestion!
You can use the .Net Clr functions.
Here is the Regular-Expression-Replace sample, you can get the idea and apply it to your problem.
EDIT:
try this regex to find what you want