I´ve had some trouble getting my RegEx find/replace working in NPP for hours. Here´s some code out of the files I´m working on: https://regex101.com/r/kQdy4L/6/ My goal is to replace all the "0>.|.|..." by their id name
test string
<movingPart index="0>8|1|3" referencePoint="0>8|1|0|4" referenceFrame="0>" scaleZ="true"/>
bla
bla
<i3dMapping id="KroneComprimaV180XC" node="0>" />
<i3dMapping id="novoGripPart2_fixPoint" node="0>8|1|0|4" />
<i3dMapping id="novoGrip_part2" node="0>8|1|3" />
substitution
<movingPart index="novoGrip_part2" referencePoint="novoGripPart2_fixPoint" referenceFrame="KroneComprimaV180XC" scaleZ="true"/>
bla
bla
<i3dMapping id="KroneComprimaV180XC" node="0>" />
<i3dMapping id="novoGripPart2_fixPoint" node="0>8|1|0|4" />
<i3dMapping id="novoGrip_part2" node="0>8|1|3" />
After some tial´n´error I got this RegEx
(".[>].*?")|<i3dMapping id=(?P<name>".*?") node=(".[>].*?")
(".[>].*?")|<i3dMapping id=(?P<name>".*?") node=(".[>].*?")\=1
Which do find either nodes+ids or only the nodes I need to replace however I can´t figure out how to replace all "0>.|.|." with the id name
Thanks for helping me out, this is the first time I get confronted with RegEx, so this is all very confusing to me. Cheers Fred