<ref> tag defined in <references> has group attribute "$1" which does not appear in prior text (see the help page).
<ref>
<references>
"$1"