Fixed the static regex expressions to create proper captures. Added missing sregex::compile() calls for GCC related regex objects.