into this:<a href="https://yahoo.com">hyperlink "internal" text</a>
ie. replace all instances of Chr(34) that are not inside HTML tags (of any kind).<a href="https://yahoo.com">hyperlink "internal" text</a>
Attempting the same thing in Javascript, I found a regex online and adapted it into this, which works perfectly:
Code: Select all
/(?![^<>]*>)"/g
Code: Select all
c34.s = Chr(34)
h.s = "<a href="+c34+"https://yahoo.com"+c34+">hyperlink "+c34+"internal"+c34+" text</a>"
rg.i = CreateRegularExpression(#PB_Any,"/(?![^<>]*>)"+c34+"/g")
h = ReplaceRegularExpression(rg,h,"""); // replace all c34s that are not inside HTML tags
Debug h