:1,$s/Id=".*" Name="\(.*\)" S/Id="En\1" Name="\1" S/
I turned
<File Id="file714" Name="ACC_NCDR.mod" Source="$(var.PCodePath)\Modules\ACC_NCDR.mod" />into
<File Id="EnACC_NCDR.mod" Name="ACC_NCDR.mod" Source="$(var.PCodePath)\Modules\ACC_NCDR.mod" />The interesting par is the \(.*\). That is remembered as the first expression and the matched value is then inserted when you use \1. In perl , they are called named expressions.
No comments:
Post a Comment