Re: regular expressions help please
| From: | John Fishworld | Date: | Tue, 30 Apr 2002 11:17:26 +0000 |
| Subject: | Re: regular expressions help please | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95359@lists.php.net to get a copy of this message | ||
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 ?
> On Tuesday 30 April 2002 16:31, John Fishworld wrote:
> > I'm trying to find files in my array
> > for example
> > ="lg_imode.gif"
> > and
> > ="/db/imodeklein/edgar-IMODE-1-.gif"
>
> Perhaps you should clarify your problem. First of all does your array
contain
> just gif files (ie *.gif) or does it contain all sorts of files? (ie
> readme.txt, important.doc, funny.gif etc)
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> In a consumer society there are inevitably two kinds of slaves:
> the prisoners of addiction and the prisoners of envy.
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>