try out parsing with regex; need a way to use a head -1 functionality
for extracting identifiers above the match