Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

need to write a simple regex

need help



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======'


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