Usage of RegEx to select text in XML



I have an XML file with a specific structure for which I need to select the number between the tags on the second row. In this example it is 4391190.


I have tried playing with \"CURRENT\">(.+?)\</value> but it does not help me any further. Can anybody help me on this?


I know regex is not the best solution, but the tool only accepts regex to select text.


Thanks



<value ref="Meterstand verbruik dagtarief" obis="99.99.99.99.99.FG" unit="30" scaler="0" type="uint" registervaluetype="CUMULATED" registertimetype="CURRENT">3692930</value>
<value ref="Meterstand verbruik nachttarief" obis="99.99.99.99.99.FG.FF" unit="30" scaler="0" type="uint" registervaluetype="CUMULATED" registertimetype="CURRENT">4391190</value>
<value ref="Meterstand injectie dagtarief" obis="99.99.99.99.99.FG" unit="30" scaler="0" type="uint" registervaluetype="CUMULATED" registertimetype="CURRENT">0</value>
<value ref="Meterstand injectie nachttarief" obis="99.99.99.99.99.FG" unit="30" scaler="0" type="uint" registervaluetype="CUMULATED" registertimetype="CURRENT">0</value>

No comments:

Post a Comment