I have got a problem with Regular Expressions. I do have this string:
And I want to change it to this:
Republikeinwever can change, and it should still work.
Should become this:
How can I do this in pure JS?
I tried to do it with Regular Expressions, but couldn't solve it.
Something like this?
var newValue = oldValue.replace( /https:\/\/([a-z]+).wikipedia.org\/wiki\/([A-Za-z]+)/i, https://.m.wikipedia.org/wiki/ );
I hope anyone can help me.