$temp=preg_replace("/==MOD RULE: Delete this line & everything below it when responding.==.*$/m", "[TRIMMED ENDING IN DIGEST MODE]\n", $temp);
Hi there - I'm looking at this site :- http://nz.php.net/manual/en/reference.pcre.pattern.modifiers.php Basically, What I want is to replace that line and *ALL* lines after it - With the new text.. Am I using the m modifier correctly ? It only seems to be swapping the one line - But the rest of the lines are the same.... -- G Stewart http://e-services.kwister.com/ NZ community groups - [EMAIL PROTECTED] ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hiqbhfo/M=362329.6886308.7839368.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1124889578/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/