1. get all occurrences of "--". 2. in those occurrences of "--" ignore those that have "logging" and "disconnected" could it be place in a qr// function like: qr/-- || ~! logging,disconnected/ (wrong syntax of course) something like an ignore list.