f_name may contain spaces, numbers, characters,... so I would go for a [^|] but then I couldn't use [...]? anymore to match the second line?