regex-based comment extraction