Welcome to WebmasterWorld Guest from 107.20.104.161

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

need to write a simple regex

need help

     

dopecoder

10:51 pm on Feb 1, 2006 (gmt 0)

10+ Year Member



i need to write a simple regex for php that would remove a signature.

it starts with '======Some text======'

and its followed by few lines of text with links.

i want to remove every thing starting from '======Some text======'

DrDoc

5:00 am on Feb 2, 2006 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



$string = preg_replace("/======Some text======.*$/is", "", $string);
 

Featured Threads

Hot Threads This Week

Hot Threads This Month