Re: string manipulation

From: Date: Fri, 21 Feb 2003 00:21:43 +0000
Subject: Re: string manipulation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136431@lists.php.net to get a copy of this message
Try this (untested): print preg_replace('|<[^<]*$|','$1',$text); Gregory Heinrichs wrote:
little help please, looking for correct functions to use to search for the last occurrence of a character in a string and truncate everything in front of it including the searched for character.<
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#136431) next »