Is there anything in particular you're hoping to extract? A cursory look suggests a regex along the lines of /^System\:/ could be used to identify heads of records even if the machine name varies. Another choice might be to split records with 'System:' by setting $/ and work from there.