SyntaxFix
Write A Post
Hire A Developer
Questions
This should work ...
var tst = "12345\n\n\r\n\r\r"; var res = tst.TrimEnd( '\r', '\n' );