Fixed regexes for g++ 4.9