note 77629 added to function.ereg
| From: | albert_einistein at yahoo dot com | Date: | Thu, 06 Sep 2007 11:49:49 +0000 |
| Subject: | note 77629 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130239@lists.php.net to get a copy of this message | ||
Hi,
I am new in PHP coding and i have a problem with the ereg() function result,
i want to find links in some HTML codes, i put function like code below:
ereg("<a.*.</a>",$contentField,$linkres)
but output of $linkres[0] is a HTML text that starts with first '<a' and finishes with
the last '</a>' of page. my problem is about finding the best pattern for this to
work,
please help me,
i don't know the parts if this site so if i must ask it in another place please tell me.
thanks
AHHP
----
Server IP: 217.218.177.42
Probable Submitter: 84.47.210.7
----
Manual Page -- http://www.php.net/manual/en/function.ereg.php
Edit -- https://master.php.net/note/edit/77629
Del: integrated -- https://master.php.net/note/delete/77629/integrated
Del: useless -- https://master.php.net/note/delete/77629/useless
Del: bad code -- https://master.php.net/note/delete/77629/bad+code
Del: spam -- https://master.php.net/note/delete/77629/spam
Del: non-english -- https://master.php.net/note/delete/77629/non-english
Del: in docs -- https://master.php.net/note/delete/77629/in+docs
Del: other reasons-- https://master.php.net/note/delete/77629
Reject -- https://master.php.net/note/reject/77629
Search -- https://master.php.net/manage/user-notes.php