I have the following data:
int time="1356280261"
char value="3000"
bankLine {
char value="3000"
char currency="EUR"
int time="1356280261"
} #bankLine
I am parsing this data recursively and only want to match the 2 variables outside the block separately.
I do have this regex to match the variable
/(?:char|int)\s*([A-z0-9]*)\s*=\s*"(.*)"/
Yet, the regex matches all occurrences inside the block, too.
How can I match only the first 2 variables individually and ignore all inside the bankLink-block?