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 aound
option -
Select the
Regular expression
search mode -
Click once on the
Replace All
button
Voila !
Best Regards
guy038
-