;; Replace multiline text with one line for further matching ;; Gets list of names and cats them together /DEF -p3 -mregexp -n1 -t'There are pictures from the following artists \((\d+)\): (.*)' artwork_multiline = \ /SET artwork_line=%P2 %; \ /DEF -p2 -mglob -t'*' artwork_middleline = \ /SET artwork_line=%%{artwork_line} %%* %;\ /DEF -F -p3 -n1 -mregexp -t'[.]$$' artwork_endline = \ /SUBSTITUTE %%artwork_line %%* %%;\ /UNDEF artwork_middleline %%; \ /UNDEF artwork_endline %%; \ /UNDEF artwork_multiline