Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8551
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Need help with updating ereg_replace function -> to preg_replace |
| Date | 2013-03-07 05:53 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <kh99vt$16u$2@dont-email.me> (permalink) |
| References | <fbab9879-db62-4cef-80e9-71a2c0d4aecd@googlegroups.com> |
On Fri, 01 Mar 2013 05:10:07 -0800, daveh wrote:
> Hello
>
> I'm totally confused none of the examples I've googled seem to help with
> fixing the following line of code:
>
> $myfunc = ereg_replace("0+$", "", $data);
>
> I've tried $myfunc = preg_replace("/0+$/", "/", $data);
I suspect that the preg_replace() equivalent of the above ereg_replace is
more likely to be:
$myfunc = preg_replace( "/0+$/", "", $data );
--
Denis McMahon, denismfmcmahon@gmail.com
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
Need help with updating ereg_replace function -> to preg_replace daveh@allheller.net - 2013-03-01 05:10 -0800
Re: Need help with updating ereg_replace function -> to preg_replace Michael Vilain <vilain@NOspamcop.net> - 2013-03-01 06:00 -0800
Re: Need help with updating ereg_replace function -> to preg_replace Christoph Becker <cmbecker69@gmx.de> - 2013-03-01 15:17 +0100
Re: Need help with updating ereg_replace function -> to preg_replace daveh@allheller.net - 2013-03-01 07:24 -0800
Re: Need help with updating ereg_replace function -> to preg_replace daveh@allheller.net - 2013-03-01 08:09 -0800
Re: Need help with updating ereg_replace function -> to preg_replace Captain Paralytic <paul_lautman@yahoo.com> - 2013-03-04 02:39 -0800
Re: Need help with updating ereg_replace function -> to preg_replace Denis McMahon <denismfmcmahon@gmail.com> - 2013-03-07 05:53 +0000
csiph-web