Topic on Talk:2017 wikitext editor/Flow

Regular expression replace doesn't work

6
Ifly6 (talkcontribs)

It seems that find and replace for a regular expression match doesn't work on English Wikipedia. I've tested this largely on Windows 10 Edge.

Matěj Suchánek (talkcontribs)

Would you please share more information about what exactly you were trying to do? It might be a general problem, but also just a browser-specific problem or a JavaScript limitation.

Ifly6 (talkcontribs)

I ran a regex, I think (?<=\d{3}) (?=BCE?) with replacement value &nbsp;; replacement simply didn't work. I exported the text to Sublime Text where it ran fine.

Matěj Suchánek (talkcontribs)

Indeed, that doesn't work for me either. (\d{3}) (BCE?)$1&nbsp;$2 does, though.

Ifly6 (talkcontribs)

This issue still isn't fixed. Running a regular expression

<nowiki>\|url=.+?worldcat.+? (?=\|)</nowiki>

yields the same problem.

Matěj Suchánek (talkcontribs)
Reply to "Regular expression replace doesn't work"