On 24 Jul 2011 at 19:57, Dajka Tamás <viper@xxxxxxxxxxx> wrote: > You want to do it in a greater text, I think. > > 1,$s/^>(>*From )/\1/ > > $line = preg_replace ($pattern, $replacement, $line); > > Adding one '>': > > preg_replace('/(^[>]+From )/','>$1', $line) > > Removing one '>': > > preg_replace('/(^>([>]+From )/','$1', $line) Thanks, I'll try that. -- Cheers -- Tim
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php