Welcome to WebmasterWorld Guest from 54.167.46.29

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)

Junior Member

10+ Year Member

joined:May 12, 2005
posts:45
votes: 0


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)

Senior Member

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

joined:Mar 15, 2002
posts:6807
votes: 0


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