I am parsing a document and would like to split it using php preg_split ().
The document consists of sections with headings:
==Section Title==
The problem is that each section has subsections with headers:
Question: Is there a way to use regular expression for analysis through a document for things that are between two equal characters, but not between three equal characters?
Thank!
PS I'm trying to learn regex, but I still find it pretty confusing!
source
share