Re: regular expressions help please
| From: | Jason Wong | Date: | Tue, 30 Apr 2002 18:36:15 +0000 |
| Subject: | Re: regular expressions help please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95420@lists.php.net to get a copy of this message | ||
On Tuesday 30 April 2002 21:09, John Fishworld wrote:
> Duh ! lol sorry !
> <img src="/db/imodeklein/edgar-IMODE-1-.gif"
> vspace=2><br> <a
>
> href="imode.fpl?op=imodecard&prefix=IMODE&nummer=1&suffx=&uid=55%2eFAGAE&pa
> > > > Unfortunately, no. Could you post say 20 lines of this file you're
> > > > talking about.
> >
> > I mean the file that you're readingparsing, not your program.
Try this:
preg_match_all("/src=(\'[a-z0-9_\/-]+\.gif\')/i", $input, $MATCH);
print_r($MATCH);
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Money is its own reward.
*/