A regex question
-
Hello,
I have a lot of lines like this :
dada#1191 (dodo) and a sentence here [a word]I need to keep only this for each lines :
dada#1191 (dodo)And to remove the “()”
dada#1191 dodoDo you know a way please ?
-
Hello, @jijo,
Easy with regexes !
So, open the Replace dialog (
Ctrl + H)-
SEARCH
(data#1191 )\(dodo\).+ -
REPLACE
\1dodo -
Tick the
Wrap aoundoption -
Select the
Regular expressionsearch mode -
Click once on the
Replace Allbutton
Voila !
Best Regards
guy038
-