Re: Pb'lm of Regular Expression

From: Date: Tue, 09 Nov 2004 14:42:56 +0000
Subject: Re: Pb'lm of Regular Expression
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-201620@lists.php.net to get a copy of this message
thnx for your support every thing is working well but still one problem, that height and width are not coming so how i modify the first regular exp. so it shows both height and width. ******************************** /<img\s+.*?src="(.*?)".*?>/s ******************************** Thnx... Ankur Dave Quoting Klaus Reimer <k-php@ailis.de>: > ankur_os@opensols.com wrote: > > "<img src=\"https://abc.com/first.php? > > site_id=abc&aid=keyin&lid=keyin&ref=&q=\" width=\"1\" > > height=\"1\">"; > > /<img\s+.*?src="(.*?)".*?>/s > > The complete tag is in index 0, the src is in index 1 of the match-array. > > > > Now what regular expression i write so i can fetch the image tag from my > site of > > above syntex.And if possible send me the regular expression of fetching > > <A href=""</A> > > /<a\s+href="(.*?)".*?>(.*?)<\/a>/s > > The complete tag is in index 0, the href attrib in index 1 and the link > text in index 2. >

« previous php.general (#201620) next »