How can detect url's from this string. Urls are in quotes that cause problem with multiple items.
"{"output":["www.google.com"],"screenshots":["http://10.200.200.14:5000/screenshots/id=215585/1.png","http://10.200.200.14:5000/screenshots/id=215585/2.png"]}"
I need to extract below:
http://10.244.224.44:5000/screenshots/id=215585/1.png
http://10.244.224.44:5000/screenshots/id=215585/2.png
Edit: I edited the line, it is actually a string and I need to extract urls to make them clickable in ace editor. So Ace editor wants me to specify a regex pattern.
const CustomHighlightRules = function CustomHighlightRules() {
let rules = new HighlightRules().getRules();
for (const rule in rules) {
rules[rule].unshift({
token: ['clickables'],
regex: /(((https?:\/\/)|(www\.))[^\s]+)/,
});