J
J
jumic2020-03-09 22:45:22
Notepad++
jumic, 2020-03-09 22:45:22

How to remove text between multiple brackets using Notepad++?

There is a txt file
Example:
Text (OtherText) Text2 (OtherText)
you need to remove everything in brackets to get Text Text2
found such a regular expression \(.*\) , but it works correctly only if there is only one (OtherText) in the line. because when using it, we get Text , instead of Text Text2, i.e. this regular expression takes the first opening bracket and looks for the last closing bracket, and does not iterate over in order.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-03-09
@jumic

\(.*?\)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question