I’m trying to remove wiki formatting from some text so it can be parsed.
What is the most pythonic way to remove two delimiters (‘[[‘ and ‘]]’) all the text between them? The given string will contain multiple occurrences of delimiter pairs.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Regular expressions are a good match for your problem.
If you are wanting to remove the whole
[[...]], which is I think what you are asking about,If you are wanting to leave the contents of the
[[...]]in,