Reply to expression problem

Your name:

Reply:


Posted by emmerink on 12/09/06 04:58

Hi,

$xml = "tekst <title> twee </title>\n drie </tr> vier </td>";

$a_sSubject = trim($xml);

$a_sStart = '<title>';$a_sEnd = '<\/tr>';
$pattern = '/'. $a_sStart .'(.*?)'. $a_sEnd .'/';
preg_match_all($pattern, $a_sSubject, $result);

print_r($result);



results in:
Array
(
[0] => Array
(
)

[1] => Array
(
)

)

Any idea why there is no content in the result?
(expected to find the content in between <title> en </tr>)

Thanks for any help.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация