I am using sublime on Mac I have something like this
Q21162;E5QCE7
E5QCF5;P91040
E5QCF6;E5QCF8;P34558
E5QCG0;Q09499
E5QCG2
I want to get rid of everything after the first ; so I want the output like this
Q21162
E5QCF5
E5QCF6
E5QCG0
E5QCG2
The following worked for me with a regular expression:
In Sublime:
^([^;]*);.*$
\1
I tested it on Windows, on Mac you probably have to use the CMD instead of the CTRL key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With