Hi, @chris-adamos,
No problem with regexes, indeed ! So :
Get back to the very beginning of your file ( Ctrl + Origin )
Open the Replace dialog ( Ctrl + H )
SEARCH (?-si)^DATA.+
REPLACE $0 "p:120 - 4 beats" with a space character, right after $0
Select the regular expression search mode
Click, once, on the Replace All button OR several times on the Replace button
Notes :
The first part, of the search, (?-is) are modifiers, which ensure you that :
The search will be performed, in a sensitive way ( = non-insensitive )
The dot special character means a single standard character, only ( not an End of Line char. )
Then, the ^DATA.+ part searches for the exact string DATA, at beginning of line, followed by the longest, non-empty range of any standard character
In replacement, the $0 syntax, just rewrites the entire searched string
Then the "p:120 - 4 beats" string, preceded with a space character, is simply added, to each matched line
An other formulation could be :
SEARCH (?-si)^DATA.+\K
REPLACE \x20"p:120 - 4 beats"
Notes :
The \K syntax, at the end of the regex, forces the regex engine to forget everything matched, before \K. So, it only matches the zero length string, at the end of each matched line
In replacement, the string \x20"p:120 - 4 beats" is, therefore, added, at the end of each matched line
Note that \x20 is, simply, the hexadecimal form of the space character
IMPORTANT : Due to the special \K syntax, you must use, exclusively, the Replace All button !
Best Regards,
guy038