OK, so here is what I need:
- We have the full Wikipedia article XML file.
- We need an infobox section
I tried different things, but my main problem seems to be unable to match the "inner" curly braces. Any ideas (or any regex that you managed to make?)
For those of you who don't know what I'm talking about, here is a (somewhat abbreviated) example of what I'm trying to analyze: http://regexr.com?38299
(a part is required between {{Infobox ******* to its corresponding closing brackets ( }} ).
php regex wikipedia wikipedia-api
Dr. Kameleon
source share