I have written this small regular expression, but it isn't working. I have these three characters that I use to delimit a string. Before I write the string to the screen, I want to ensure that all the delimiters are removed. I can't remove them individually, in case they appear in the string, I only want to remove when they appear together.
If I do this
it works, but that removes the characters individually, from what I understand on the DevGuru site.
Any ideas?
Code:
rExp=/|`~/g
var tmpRows = new String(outString)
outString=tmpRows.replace(rExp,"")
Code:
rExp=/[|`~]/g
var tmpRows = new String(outString)
outString=tmpRows.replace(rExp,"")
Any ideas?