You are here: parsing tags with regexp « All PHP « IT news, forums, messages
parsing tags with regexp

Posted by marcin on 03/13/06 18:58

Hello!

I spent some time trying to create regexp for parsing some xml-like tags.
I need to catch two type of blocks by one regexp:
1. <xxx:tagname optional_parameters />
2. <xxx:tagname optional_parameters>optional content</xxx:tagname>
but "optional content" may have other <xxx:tagname> tags (childs)

I can't use typical xml parser, because document isn't xml valid.
Do you have any suggestions? I'll be thankful for any solution.

Greetz,
marcin

 

Navigation:

[Reply to this 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

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