note 8322 deleted from ereg by jmcastagnetto

From: Date: Wed, 06 Sep 2000 18:29:32 +0000
Subject: note 8322 deleted from ereg by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-4263@lists.php.net to get a copy of this message
Question about hit one then escape: Surpose the src string like that<br> $src = '....<tag1>tag1</tag><tag2>tag2</tag>....'<br> and want to get tag1, tag2<br> I tried use pattern:<br> $pattern = $starttag.'.+'.$endtag /* $starttag='<tag1>' and $endtag='</tag>' */ <br> then use <br> eregi($pattern, $src, $match) to find it<br> But it match whole string the end tag of tag2 also '</tag>'<br> Can eregi had option that to hit one and then escape?<br> P.S. I tried use $pictags.'.+'.$endtag.'[^.*]', but not work<br> Great thx

« previous php.notes (#4263) next »