I have a string in Node.js Runtime e.g
var content = "my content contain some URL like https://this.me/36gD6d3 or https://this.me/39Jwjd";
How can I read each https://this.me/36gD6d3 and https://this.me/39Jwjd to replace it with another URL?
A forEach loop or something similar would be best. :-)
What I need is to make a request to each of that URL to get the real URL behind the shorten URL. That's not the problem.
Before and after each of that URLs is neither a whitespace or a ..
Domain https://this.me/ is constant but the IDs 39Jwjd, 36gD6d3 are changing.
Looking forward to your answers! :)