I have some trouble with a generated file, and I like to make some substitution
Say I have got this pattern :
<ul/><htmlelement>some text</htmlelement>
I want to find with my regexep the value of some text, since I can find the element htmlelement with a regexp, i want to recursively include it in the regex like
preg_match_all("#<ul/><([^><])>(.)*</(first capuring match)>#", $string, $matches);
Do you have a solution?