I cannot find a specific question like this so I’m posting. Hopefully, this will be of general use.
I have a file that includes XML tags of “<w:t> data data.....</w:t>“. There is a lot of other stuff too. I need to capture everything within (and including) the <w:t></w:t> tags.
I’d appreciate hearing suggestions on how to proceed.
Thanks in advance..
David
Using DomXml is preferred option since it does not restrict you to searching for other tags/data.
But using regular expressions makes far less code so I would go for preg_match_all if those tags are only thing you need.
response:
Edit: /is modifier added to regex