On Friday 23 February 2001 19:33, John Vanderbeck wrote:

> I need to take a string and remove everything from the first "<"
> character to the end of the line.  I'm pretty sure I could do this with
> an ereg_replace(), but I am horrible at regular expressions.  Could
> anyone help me with this?

Well, I prefer preg_* :)

$mystring = preg_replace ('/<.*/', '', $mystring);

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

...10001000110101011010101101011110111010113...????

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to