I have this regular expression but it won't work in JavaScript..is there anyway I can change it to make it work in JS? (?<!(/?<TAG\s*.*))> I want to replace all '>' which is not preceeded by <TAG..... ...