so the javascript node I came up with (guess it parses ok since I wrote it using http://www.jshint.com) for adding in the ASPX is:
</br>
</br>
<script>
</br>
</br>var curAddr = document.location;
</br>
</br>var newAddr = curAddr.replace(new RegExp("/lng/[a-z]{2}-[A-Z]{2}", "gi"), "");
</br>
</br>if (curAddr != newAddr)
</br>
</br> document.location = newAddr;
</br>
</br></script>
or the more cryptic:
</br>
</br>
</br>
</br><script>
</br>
</br>var curAddr = document.location;
</br>
</br>var newAddr = curAddr.replace(/\/lng\/[a-z]{2}-[A-Z]{2}/gi, "");
</br>
</br>if (curAddr != newAddr)
</br>
</br> document.location = newAddr;
</br>
</br></script>
</br>
</br>
</br>
</br>since according to
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
Literal and constructor notations of regular expressions are possible:
</br>
</br>
</br>
</br>/pattern/flags;
</br>
</br>new RegExp(pattern [, flags]);
...
the following expressions create the same regular expression:
</br>
</br>
</br>
</br>/ab+c/i;
</br>
</br>new RegExp("ab+c", "i");
</br>
</br>