Re: strip <BR>(s) from the end of the string
| From: | Brian Clark | Date: | Mon, 19 Nov 2001 22:53:22 +0000 |
| Subject: | Re: strip <BR>(s) from the end of the string | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75170@lists.php.net to get a copy of this message | ||
Hi Justin,
@ 5:51:23 PM on 11/19/2001, Justin French wrote:
JF> Sorry, yeah, there are other <BR>'s in the string... I only want to chop
JF> the trailing ones.
>> $string = preg_replace('/(<br>)+$/i','',$string);
^^^ that'll do it then.
--
-Brian Clark | PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.