I've got a column in a table which contains xml type of data but is in a varchar format. An example raw of data is:
<old_template_code>BEVA30D</old_template_code><old_template_name>Beva
30D France calls capped
15p</old_template_name><new_template_code>BEVA24M</new_template_code><new_template_name>Beva 24M France Calls Capped 15p</new_template_name>
I wonder what regex expression do I have to use to retrieve for example 'BEVA30D' from <old_template_code>
?
I've tried
REGEXP_SUBSTR(table.column,
'<old_template_code>*</old_template_code>') "REGEXPR_SUBSTR"
but it doesn't work.