removing lines
-
I am wondering if this is possible… currently in the process of ripping my cds and the result leaves a log file but my ocd is not allowing me to move on until i have edited the log file to the way i need it to be…
Anyway here is a example of the log file
dBpoweramp Release 16.6 Digital Audio Extraction Log from 22 February 2024 13:50
Drive & Settings
Ripping with drive ‘S: [HL-DT-ST - DVDRAM GE20LU10 ]’, Drive offset: 667, Overread Lead-in/out: No
AccurateRip: Active, Using C2: No, Cache: 1024 KB, FUA Cache Invalidate: No
Pass 1 Drive Speed: Max, Pass 2 Drive Speed: Max
Bad Sector Re-rip:: Drive Speed: Max, Maximum Re-reads: 34Encoder: FLAC -uncompressed -verify
Extraction Log
Track 1: Ripped LBA 0 to 15922 (3:32) in 0:17. Filename: C:\Users\Owner\Desktop\Rip\Orchestral Manoeuvres In The Dark - 1998 - The OMD Singles\Orchestral Manoeuvres In The Dark - 01 - Electricity (3.32).flac
AccurateRip: Accurate (confidence 27) [Pass 1]
CRC32: DBC01482 AccurateRip CRC: 99BFF450 (CRCv2) [DiscID: 018-002dbf63-0262722d-f0108d12-1]
AccurateRip Verified Confidence 27 [CRCv2 99bff450]
AccurateRip Verified Confidence 18 [CRCv1 78cfa4e]I am trying to remove all the text up until the words “extraction log” so that it looks like this
Extraction Log
Track 1: Ripped LBA 0 to 15922 (3:32) in 0:17. Filename: C:\Users\Owner\Desktop\Rip\Orchestral Manoeuvres In The Dark - 1998 - The OMD Singles\Orchestral Manoeuvres In The Dark - 01 - Electricity (3.32).flac
AccurateRip: Accurate (confidence 27) [Pass 1]
CRC32: DBC01482 AccurateRip CRC: 99BFF450 (CRCv2) [DiscID: 018-002dbf63-0262722d-f0108d12-1]
AccurateRip Verified Confidence 27 [CRCv2 99bff450]
AccurateRip Verified Confidence 18 [CRCv1 78cfa4e]I am trying to do it on about 20 txt files at one time, is this possible?, thanks
-
Then i am trying to remove the (3:32) in 0:17
which i am doing with search and replace with (?x-is) \x20 ( .+ (?= . \x20 Filename )
is it possible to do both in 1 go , so i can do as many as i can as quick as i can.
-
@Cal-Murphy said in removing lines:
Then i am trying to remove the (3:32) in 0:17
which i am doing with search and replace with (?x-is) \x20 ( .+ (?= . \x20 Filename )
is it possible to do both in 1 go , so i can do as many as i can as quick as i can.
(?x-is) \A [\s\S]+ (?= ^ Extraction \x20 Log \R) | \x20 \( .+ (?= \. \x20 Filename )
should do it.
\A
matches the beginning of a file, so you can use it to anchor the first of multiple matches; then the OR-bar introduces everything that will be matched later.Please be careful to use ``` characters to enclose text that should not be interpreted as markdown. If you go back and read your posts, you’ll see that what you typed isn’t what we see. For multi-line sequences like files, put ```text on a line by itself, then the text, then ``` on a line by itself. Inline, just put ``` before and after the text. Alternatively, you can use a backslash (\) to escape special characters. The way the forum software works is not always predictable (at least, not to me), though, so take care to watch the preview to the right of where you type to be sure what you expect is being shown.
-
@Coises said in removing lines:
(?x-is) \A [\s\S]+ (?= ^ Extraction \x20 Log \R) | \x20 ( .+ (?= . \x20 Filename )
Thankyou that looks like it as worked, much appreciated.