Welcome Guest, Not a member yet? Register   Sign In
Issue with \r\n and \t
#4

[eluser]dbashyal[/eluser]
Code:
$newline = preg_replace('/\r\n/', "\r\n", $newline);
or,
$newline = preg_replace('/(\r|\n)/', "\r\n", $newline);

$newline = preg_replace('/\t/', "\t", $newline);

replaces every repeat.


Messages In This Thread
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:20 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:42 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:45 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:52 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:53 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 08:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB