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]
|