Goal is: to remove everything that is not a NAME or ID from a text.
Example:
Paula Abdul @PaulaAbdul Dec 25 18:13:07 +0000 (GMT) via XYZ Web Client
( ... Some junk line to remove ... )
Michael Jackson @MichaelJackson Dec 27 16:03:01 +0000 (GMT) via XYZ Web Client
( ... Other stuff to remove / e.g. an empty line)
George Michael @GeorgeMichael Dec 28 19:23:15 +0000 (GMT) via XYZ Web Client
Goal is to extract Name and ID:
Paula Abdul @PaulaAbdul
Michael Jackson @MichaelJackson
George Michael @GeorgeMichael
What is the best way to about it? My idea is: 1. Select all lines that do not contain "@..." 2. AND select everything after "@..." to the line end
So far i know:
Ignore all Lines with <string>: ^((?!@<string>).)*$
and how can i combine both searches into one?
i assume: <pattern1>|<pattern2>
I am using https://atom.io Editor for my RegExp search.