Re: [PHP] strip (s) from the end of the string

2001-11-19 Thread Brian Clark
Hi Justin, @ 5:51:23 PM on 11/19/2001, Justin French wrote: JF> Sorry, yeah, there are other 's in the string... I only want to chop JF> the trailing ones. >> $string = preg_replace('/()+$/i','',$string); ^^^ that'll do it then. -- -Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO N

Re: [PHP] strip (s) from the end of the string

2001-11-19 Thread Justin French
Sorry, yeah, there are other 's in the string... I only want to chop the trailing ones. Justin Brian Clark wrote: > > Hi Justin, > > @ 5:20:15 PM on 11/19/2001, Justin French wrote: > > JF> Some RegExp help here would be great... how do I strip one (or more) > JF> 's from the END of a string

Re: [PHP] strip (s) from the end of the string

2001-11-19 Thread Brian Clark
Hi Justin, @ 5:20:15 PM on 11/19/2001, Justin French wrote: JF> Some RegExp help here would be great... how do I strip one (or more) JF> 's from the END of a string? Are they always at the end of the string? No more anywhere else on the line? $string = str_replace('','',$string); $string = st

[PHP] strip (s) from the end of the string

2001-11-19 Thread Justin French
Hi, Some RegExp help here would be great... how do I strip one (or more) 's from the END of a string? Many thanks, Justin French -- 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 a