יש לי תוכן של דף לדוגמא:
HTML קוד:
<font color=\"#008003\">test</font>
<font color=\"#008003\">test</font>
<font color=\"#008003\">test</font>
<font color=\"#008003\">test</font>
<font color=\"#FF0003\">test</font>
<font color=\"#FF0003\">test</font>
<font color=\"#FF0003\">test</font>
<font color=\"#FF0003\">test</font>
אני רוצה להוציא רק מה שצבע הפונט שלו הוא #008003
בגלל שיש \" אני לא מצליח הכי קרוב שהצלחתי זה להוציא את כל הצבעים עם:
PHP קוד:
preg_match_all("#<font[>]*(.+?)</font>#i", $contents, $matches);
תודה לעוזרים