Re: [PHP] Help with preg_match_all regex for alt tags

2008-04-29 Thread James Dempster
try preg_match_all('/]*alt="([^"]*)"/i', $subject, $result); -- /James On Tue, Apr 29, 2008 at 8:18 PM, Joe Harman <[EMAIL PROTECTED]> wrote: > Hey y'all ... i am having alittle trouble with this regex for finding > ALT tags for images... > > > Here is my statement > > --

Re: [PHP] Help with preg_match_all()

2004-11-01 Thread Klaus Reimer
Curt Zirzow wrote: And so on.. It's a kind of a template system... well... I need to create a expression to get all the tags from the HTML with preg_match_all() in order to have them in a array... So your looking from something that starts with '{' and continues while not a ')' ... /{([^}]*?)}/ I

Re: [PHP] Help with preg_match_all()

2004-10-31 Thread Francisco Javier Escoppinichi Fernández
Thanks! Worked like a charm! *Problem solved* On Mon, 1 Nov 2004 03:01:12 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Francisco Javier Escoppinichi Fernndez: > > Hello people... > > > > I'm relatively a beginner with regular expressions, so I need a little > > help here.. I hop

Re: [PHP] Help with preg_match_all()

2004-10-31 Thread Curt Zirzow
* Thus wrote Francisco Javier Escoppinichi Fernndez: > Hello people... > > I'm relatively a beginner with regular expressions, so I need a little > help here.. I hope you can help me... If you read the whole section @ http://php.net/pcre you'll be able to do this in your sleep. > > Ok, I have a