I have a string like "WITH
MEMBER [Service Rate].[Service Rate].[#~~fdd-7796-4295-a59d-affdfd~~#] AS AGGREGATE([#~~fdfdf-4b4e-4e3a-b0f1-fdfd~~#])
, Caption='Current Period' , SOLVE_ORDER=0 , Scope_Isolation=CUBE
SET [#~~8195f161-4b4e-4e3a-b0f1-b2cda0773122~~#] AS {[Service Rate].[Service Rate].[Service Months].&[2000 - MAR]&[2000]&[2000 - Q1]:
[Service Rate].[Service Rate].[Service Months].&[2015 - FEB]&[2015]&[2015 - Q1]}
SELECT { DISTINCT ( { [Rate Brand Indicator].[Rate Brand Indicator].&[0] ,
[Rate Brand Indicator].[Rate Brand Indicator].&[Y] , [Rate Brand Indicator].[Rate Brand Indicator].&[N] } ) }
PROPERTIES PARENT_UNIQUE_NAME, MEMBER_KEY, MEMBER_TYPE ON COLUMNS,
{ DISTINCT ( { [Service Rate].[Service Rate].[#~~asfd-fd-dfd-a59d-b820f67a591f~~#] } ) }
PROPERTIES PARENT_UNIQUE_NAME, MEMBER_KEY, MEMBER_TYPE ON ROWS FROM [Cost]
WHERE ( [Measures].[Paid per day] , [Rate Type].[Rate Type].&[2] ,
[Group].[First Group].&[CHILD''S Dept] ) CELL PROPERTIES FORMATTED_VALUE, VALUE, FONT_NAME "
Is there any function or sql script that gives me output in different rows like
[Service Rate].[Service Rate]
[Rate Brand Indicator].[Rate Brand Indicator]
[Measures].[Paid per day]
[Rate Type].[Rate Type]
[Group].[First Group]
Basically I want to get text within large brackets.