Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

RegEx to parse MDX calc. member

$
0
0

Hello @all,

my task it to parse an MDX script, which defines calculated member in OLAP, using regular expressions. I need to extract following properties of the calc. measure: name, expression, visibility, display folder, associated measure group. Here is a general format of that script:

CREATE MEMBER CURRENTCUBE.[MEASURES].[<name>]
 AS <expression>,

VISIBLE = <visibility> , 
DISPLAY_FOLDER = <displayFolder> , 
ASSOCIATED_MEASURE_GROUP = <assoc. measure group>  ;

I'm a newbi in the regular expressions, and I have massive problems to create corresponding expression. Can anyone help me? What I need is a match expression which returns required values as groups, and those groups I will save later into database.

Thanks in advance,

regards from Hamburg,

Andrey


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>