Results 1 to 3 of 3
Apr 23, 2006, 17:33 #1
- Join Date
- Aug 2003
- Southern California, United States
- 0 Post(s)
- 0 Thread(s)
Complicated Preg_Match_All Problem
I have the following:
preg_match_all('/<\b([^<>]*)>/', $structure, $objects);
The structure is my document that is being searched, and the objects is the variable. The problem is, I don't want the code to find another result until the first tag name has been closed.
The above code will find 'game' and 'i' as a result, even though the tag name <game> has not been closed yet (</game>). So in reality it should only find 'game' as a result, ignoring 'i' because 'game' has not been closed yet. Can someone show me the correct preg_match_all I need. Thank you so much.Have a good day.