I have the following part of string:
{{Infobox musical artist
|honorific-prefix = [[The Honourable]]
| name = Bob Marley
| image = Bob-Marley.jpg
| alt = Black and white image of Bob Marley on stage with a guitar
| caption = Bob Marley in concert, 1980.
| background = solo_singer
| birth_name = Robert Nesta Marley
| alias = Tuff Gong
| birth_date = {{birth date|df=yes|1945|2|6}}
| birth_place = [[Nine Mile, Jamaica|Nine Mile]], [[Jamaica]]
| death_date = {{death date and age|df=yes|1981|5|11|1945|2|6}}
| death_place = [[Miami]], [[Florida]]
| instrument = Vocals, guitar, percussion
| genre = [[Reggae]], [[ska]], [[rocksteady]]
| occupation = [[Singer-songwriter]], [[musician]], [[guitarist]]
| years_active = 1962–1981
| label = [[Beverley's]], [[Studio One (record label)|Studio One]],
| associated_acts = [[Bob Marley and the Wailers]]
| website = {{URL|bobmarley.com}}
}}
And I'd like to remove all of it. Now if I try the regex: \{\{(.*?)\}\}
it catches {{birth date|df=yes|1945|2|6}}
, which makes sense so I tried : \{\{([^\}]*?)\}\}
which thens grabs from the start but ends in the same line, which also makes sense as it has encoutered }}
, i've also tried without the ?
greedy ,still same results. my question is, how can I remove everything that's inside a {{}}
, no matter how many of the same chars are inside?
Edit: If you want my entire input, it's this: https://en.wikipedia.org/w/index.php?maxlag=5&title=Bob+Marley&action=raw