I have this string:

"hello\r\nworld\r\n"

I want to parse it so that I get "hello" and "world" only. I tried using replace() to replace the \r\n with a single character such as a comma. But it doesn't work. Any ideas?