Re: preg guru question

From: Date: Fri, 13 Feb 2004 21:35:15 +0000
Subject: Re: preg guru question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177653@lists.php.net to get a copy of this message
On Fri, 2004-02-13 at 13:25, pete M wrote: > Im trying to scan a file and lift the image name from the <img tag > > ie > <img src="THISBIT.ext"> > where there could be ' or " > > I messed around but am 2 embarassed to post code cos it dont work ;-( Always post code, it can help us understand what you are looking to do. Are you looking for a regexp? '/<img\s+src=([\'"])([^\1]+)\1\s*\/?\s*>/i' -- Adam Bregenzer adam@bregenzer.net http://adam.bregenzer.net/

« previous php.general (#177653) next »