Named group is formed with (?<name>)
.
Captured text can be inserted in result using $+{name}
.
Example text: <foo><bar>Hello</bar> <baz>World!</baz></foo>
In the regex: <foo><bar>(?<message>.+)</bar> <baz>(?<object>.+)</baz></foo>
Replace by: <message object="$+{object}">$+{message}</message>