well lets look at the code first, I just built a VERY simple email forward cleaner(you know the stupid little > at the start of every line)
<?php
if(isset($message))
$newmsg=preg_replace("/^>+\s*/","",$message);
?>
<html>
<head>
<title>Email Forward stripper</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div align="center"><h3>Paste the message to be cleaned below</h3><br><br><br><form action="<?php print $PHP_SELF ?>" method="post">
<textarea cols="100" rows="30" name="message"><?php if(isset($newmsg))
echo $newmsg ?></textarea><br><br><br>
<input type="submit" value="Clean">
</form><br><br>
© 2002 <a href="mailto:mhughes@nettech-computers.com?subject=CleanMail">NetTech Computers</a> All Rights Reserved
</div>
</body>
</html>
Well first the question, what do I need to do to have it only strip the > chrs until it hits text then to go the the next line. I have tried the /A and the /U moders, just wont work
now the problem, when it hits a double quote " it adds a \ to the front of it, why is it doing that???