Reputation: 69
I have something like:
oiuerer jeff oteaweawe
gnwaeeeee jeff nbbaweee
bbbadx jeff nvxxawee
I would like to remove the text which is both before and after the word "jeff" so that each line is only "jeff". How can I do this with regex? Thanks
Upvotes: 2
Views: 3292