If I have some xml containing things like the following mediawiki markup:
” …collected in the 12th century, of which [[Alexander the Great]] was the
hero, and in which he was represented,
somewhat like the British [[King
Arthur|Arthur]]”
what would be the appropriate arguments to something like:
re.findall([[__?__]], article_entry)
I am stumbling a bit on escaping the double square brackets, and getting the proper link for text like: [[Alexander of Paris|poet named Alexander]]
Here is an example
Version 2, puts more into the regex, but as a result, changes the output:
Version 3, if you only want the link without the title.