01-09-2006, 14:40
|
|
|
|
חבר מתאריך: 09.12.01
הודעות: 2,337
|
|
אז תעשה כמו שאמרתי לך בדוגמה השניה,
רק שתעשה חיפוש לתעספציפי במקום לכל הטאגים:
קוד PHP:
$regex="/<font ([^>]*)>/imsU";
$count=preg_match_all($regex,$mydata,$matches,PREG _PATTERN_ORDER);
//עד לכאןזה החלק מוצא את התע הרצוי
$attr="/([a-z-]*)=\"([^\"])\"/ismU";
if ($count) foreach ($matches as $m) {
if (preg_match_all($attr,$m[2],$attributes) {
....
}
}
//$attributes יתן לך את כל הפרמטרים שיש לתג הfont שחיפשת
_____________________________________
“The man of wisdom is never in two minds about right and wrong;
the man of benevolence never worries about the future;
the man of courage is never afraid.”
~ Confucius
|