SQL Server 2005
I have a text field. (data type text)
The field consists of various Name value pairs.
I need to extract the value of the "SavedFilterName" pair.
i.e.
SavedFilterName=STAFF_PCOM%2526%26FilterEntryVars_1=EscapePercent=1%2526SavedFilterName=VIP_CP%
The value will always have the "SavedFilterName=" to begin with and ends with a "%".
thus, I want to have a result which returns:
STAFF_PCOM,VIP_CP
There could be many of these. I am only looking for the Values of the "SavedFilterName=" pair.
I think I need a regular expression here. Please help.
I have a text field. (data type text)
The field consists of various Name value pairs.
I need to extract the value of the "SavedFilterName" pair.
i.e.
SavedFilterName=STAFF_PCOM%2526%26FilterEntryVars_1=EscapePercent=1%2526SavedFilterName=VIP_CP%
The value will always have the "SavedFilterName=" to begin with and ends with a "%".
thus, I want to have a result which returns:
STAFF_PCOM,VIP_CP
There could be many of these. I am only looking for the Values of the "SavedFilterName=" pair.
I think I need a regular expression here. Please help.