Answer the question
In order to leave comments, you need to log in
Problem parsing (regex) URL tags in Safari / "invalid group specifier name"?
In other browsers everything is correct.
But in safari it gives out in the second line.
"invalid group specifier name "
let url_utm= location.search;
let get_metk =Object.fromEntries((url_utm.match(/(?<=utm_).+?=[^&]*/gu) || []).map(n => n.split('=')));
console.log(get_metk['source']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question