I need to replace linefeeds and returns between test from a text box input. There might be any number in any order. For example"
Should change to:test\r\r\r\n\r\n\rtest
I've tried:test<SomeString>test
But it doesn't work as I need...PHP Code:$data = preg_replace("/[\r|\n]*/", '<SomeString>', $original_data);
So, any Reg Ex gurus out there have any suggestions?



Reply With Quote


Bookmarks