Skip to content
Advertisement

Extract String between brackets in a file for all occurrences in Python

I have a file like:

JavaScript

I want to be able to search this file and extract all the data within the brackets and produce that as output like:

JavaScript

I tried this so far but no luck:

JavaScript

Any input is greatly appreciated!

Advertisement

Answer

Try this:-

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement