Re: regular expressions help please
| From: | Jason Wong | Date: | Tue, 30 Apr 2002 11:30:32 +0000 |
| Subject: | Re: regular expressions help please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95362@lists.php.net to get a copy of this message | ||
On Tuesday 30 April 2002 19:17, John Fishworld wrote:
> Okay right I'm experimenting with an i-mode parser !
> I copy the file (url entered) to a local location !
> Then read through the whole file line at a time and change/replace the
> things that need replaceing !
> On of the things that I need to replace is the links to the pictures so
> that they still show even !
> I've already got from the original file the original location
> http://www.whatever.com
> and now want to insert that in front of the gif files
> ie
> $imode_code[$i] = eregi_replace("(<img src=).+\.gif\"" ,
> "\\1$next_path\\2",$imode_code[$i]);
>
> There are just gif files in this !
>
> Does that make more sense ?
Unfortunately, no. Could you post say 20 lines of this file you're talking
about.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
You are in a maze of little twisting passages, all different.
*/