Hi,
i have script with pattern (href=['"]?(.*)([#]{1}[^'"<>]+)['"]?),
where i match any occurence of url and replace hyperlink so i have
only anchor in it.
var regExp = /href=['"]?(.*)([#]{1}[^'"<>]+)['"]?/ig;
var wholeContent = document.body.innerHTML; //doenst look like this
I only make it for example
wholeContent = wholeContent.replace(regExp, 'href="$2"');
All works great, but I dont want to change URL's which containt word
'item_id'
How to do that? :D
Thx for help