No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* ''[//{{SERVERNAME}}/index.php?title={{FULLPAGENAMEE}}&useskin=vector Viewing with the Vector theme is recommended for this page]'' | |||
[[File:Industrial_tunnels_exterior.png|640px|frameless|center|link=Braingirl:Industrial Tunnels]] | [[File:Industrial_tunnels_exterior.png|640px|frameless|center|link=Braingirl:Industrial Tunnels]] | ||
== Search & replace regex for fixing links == | == Search & replace regex for fixing links == | ||
Here are the regexes I use to repair links in various articles on [[Yume 2kki:Yume 2kki Wiki|Yume2kki Wiki]]. | Here are the regexes I use to repair links in various migrated articles on [[Yume 2kki:Yume 2kki Wiki|Yume2kki Wiki]]. | ||
I strongly recommend looking at each detected case individually before applying! | I strongly recommend looking at each detected case individually before applying! | ||
Designed for use with [https://github.com/VSCodium/vscodium Codium] or a similarly capable editor. | |||
=== Without description === | === Without description === | ||
Line 49: | Line 52: | ||
[[Yume Nikki:$2|$3]] | [[Yume Nikki:$2|$3]] | ||
</pre> | </pre> | ||
[[File:Zenmaigahara Charset 01box.png|104px|frameless|center|link=Yume_2kki:Hakoko]] | [[File:Zenmaigahara Charset 01box.png|104px|frameless|center|link=Yume_2kki:Hakoko]] |
Latest revision as of 00:13, 18 November 2022
Search & replace regex for fixing links
Here are the regexes I use to repair links in various migrated articles on Yume2kki Wiki.
I strongly recommend looking at each detected case individually before applying!
Designed for use with Codium or a similarly capable editor.
Without description
\[\[([^#][^[|:]*)\]\]
[[Yume 2kki:$1|$1]]
With description
\[\[([^#][^[:]*)\|([^[]*)\]\]
[[Yume 2kki:$1|$2]]
Fix spaces in ids
Note: I'm not sure if this is strictly necessary to do, but I've had some problems with spaces in ids.
\[\[([^#|]*)#([^ |]*) ([^|]*)\|
[[$1#$2_$3|
Full hyperlinks (Yume 2kki Wiki)
\[https?://yume2kki.(wikia|fandom).com/wiki/([^ ]*) ([^\]]*)\]
[[Yume 2kki:$2|$3]]
Full hyperlinks (Yume Nikki Wiki)
\[https?://yumenikki.(wikia|fandom).com/wiki/([^ ]*) ([^\]]*)\]
[[Yume Nikki:$2|$3]]