×
Create a new article
Write your page title here:
We currently have 3,053 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,053Articles

User:SmiVan: Difference between revisions

No edit summary
mNo edit summary
Line 6: Line 6:
== 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!

Revision as of 00:12, 18 November 2022


Industrial tunnels exterior.png

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!

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]]
Zenmaigahara Charset 01box.png