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



YumeWiki
3,035Articles

User:SmiVan: Difference between revisions

 
No edit summary
Line 1: Line 1:
[[File:Zenmaigahara Charset 01box.png|frameless|center|link=Yume_2kki:Hakoko]]
[[File:Zenmaigahara Charset 01box.png|frameless|center|link=Yume_2kki:Hakoko]]
== 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]].
I strongly recommend looking at each detected case individually before applying!
=== Without description ===
<pre>
\[\[([^#][^[|:]*)\]\]
</pre>
<pre>
[[Yume 2kki:$1|$1]]
</pre>
=== With description ===
<pre>
\[\[([^#][^[:]*)\|([^[]*)\]\]
</pre>
<pre>
[[Yume 2kki:$1|$2]]
</pre>
=== Fix spaces in ids ===
<pre>
\[\[([^#|]*)#([^ |]*) ([^|]*)\|
</pre>
<pre>
[[$1#$2_$3|
</pre>
=== Full hyperlinks (Yume 2kki Wiki) ===
<pre>
\[https?://yume2kki.(wikia|fandom).com/wiki/([^ ]*) ([^\]]*)\]
</pre>
<pre>
[[Yume 2kki:$2|$3]]
</pre>
=== Full hyperlinks (Yume Nikki Wiki) ===
<pre>
\[https?://yumenikki.(wikia|fandom).com/wiki/([^ ]*) ([^\]]*)\]
</pre>
<pre>
[[Yume Nikki:$2|$3]]
</pre>

Revision as of 23:40, 17 November 2022

Zenmaigahara Charset 01box.png

Search & replace regex for fixing links

Here are the regexes I use to repair links in various 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

\[\[([^#|]*)#([^ |]*) ([^|]*)\|
[[$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]]