I have a xml file like this :
<data>
<season id="00">
<project id="text"/>
<project id="test"/>
<project id="move"/>
<project id="moser"/>
<project id="moment"/>
<project id="save"/>
<project id="safe"/>
<project id="search"/>
</season>
<season id="01">
<project id="send"/>
<project id="serve"/>
<project id="service"/>
<project id="mondey"/>
<project id="mother"/>
<project id="tesla"/>
<project id="tiser"/>
<project id="spacnk"/>
</season>
I want to find xmllist with regexp for match some text in attributes for example “se” or “mo”.
Please help me.
Explanation:
To match only project elements with id attributes that start with “se” you simply have to alter the regular expression as usual:
And ending with “se”:
… etc.