Using this bit of code trims out hidden characters like carriage returns and linefeeds with nothing using javascript just fine:
value = value.replace(/[rn]*/g, );
but when the code actually contains rn text what do I do to trim it without affecting r's and n's in my content? I've tried this code:
value = value.replace(/[\r\n]+/g, );
on this bit of text:
{client:{werdfasreasfsd:asdfRasdfasrnMCwwDQYJKoZIhvcNAQEBBQADGw......
I end up with this:
{cliet:{wedfaseasfsd:asdfRasdfasMCwwDQYJKoZIhvcNAQEBBQADGw......
Side note: It leaves the upper case versions of R and N alone because I didn't include the /i flag at the end and thats ok in this case.
What do I do to just remove rn text found in the string?