I am have been assigned a task to parse a string (which is essentially in XML format) and I need to extract the name of the first tag in the string
eg: string '<column><data-type>string</data-type>.............'
or '<filter><condition>....</condition>...............'
or
'......................'
the string keeps changing but I am only interested in the first tag, I would like to get the output like:
- column,
- filter,
- query
i have tried regexp_substr(string,'^<(.+)>',1,1,null,1)
and some similer variations but they don't seem to be working cosistently.
Please help.