User: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==
(<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==