(<ref[^/]*?>)(http[^<\s]+)\s+(\S[^<]*\S)\s*</ref> R: \1[\2 \3]</ref>
(<ref[^/]*?>)(http[^<\s]+)\s+(\S[^<]*\S)\s*</ref>
\1[\2 \3]</ref>
(<ref[^/]*?>)\[(http[^<\s]+)\](\{\{dead.*?\}\})\s+(\S[^<]*\S)\s*</ref> R: \1[\2 \4]\3</ref>
(<ref[^/]*?>)\[(http[^<\s]+)\](\{\{dead.*?\}\})\s+(\S[^<]*\S)\s*</ref>
\1[\2 \4]\3</ref>
^=([^=]+)= R: ==\1==
^=([^=]+)=
==\1==