Re: [Tutor] Removing open bracket, content, close bracket content...

2016-01-13 Thread Alan Gauld
On 13/01/16 22:25, Sam Starfas via Tutor wrote: Hi Sam, Could you repost using plain text please? As you can see below the htnml/rich text option destroys the formatting of the data and code making it near impossible to read. > Hi,I am new to Python and trying to create a script that will remove

[Tutor] Removing open bracket, content, close bracket content...

2016-01-13 Thread Sam Starfas via Tutor
Hi,I am new to Python and trying to create a script that will remove content wrapped in brackets.For example I want to remove from each line the following:[!L] [20][!20+:2]etc But when I run my script I only get the last line of the content. It is correct as far as the output I want, but I d