#include <MsgBoxConstants.au3> ; to declare the Constants of MsgBox
Local $sRegex = "(?s)(?<=(index|Point|Frame)=")([^"]+)(?=".*?id="([^"]+)" node="\2")"
Local $sString = "<movingPart index="0>8|1|3" referencePoint="0>8|1|0|4" referenceFrame="0>" scaleZ="true"/>" & @CRLF & _
"bla" & @CRLF & _
"bla" & @CRLF & _
"<i3dMapping id="KroneComprimaV180XC" node="0>" />" & @CRLF & _
"<i3dMapping id="novoGripPart2_fixPoint" node="0>8|1|0|4" />" & @CRLF & _
"<i3dMapping id="novoGrip_part2" node="0>8|1|3" />"
Local $sSubst = "\3"
Local $sResult = StringRegExpReplace($sString, $sRegex, $sSubst)
MsgBox($MB_SYSTEMMODAL, "Result", $sResult)
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm