使用者:Alexander Misel/useful regex

(<ref[^/]*?>)(http[^<\s]+)\s+(\S[^<]*\S)\s*</ref> R: \1[\2 \3]</ref>

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

^=([^=]+)= R: ==\1==