I am trying to improve my in-site personal messaging system by making it look nicer and feel more like e-mail. I currently add > before each line of replied text, but I would also like to add formatting such as font color to lines that start with ">" without the quotes. I am not sure how I would close the lines out with a regular expression. To open it I assume I should do something like the following?
$new_text = preg_replace("\> \is", "<font color=\"grey\">> ", $text);