https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723 --- Comment #7 from cqwrteur <unlvsur at live dot com> --- well the right solution is to write the regex by yourself. C++ regex might be deprecated in the future.