Giving C++ std:regex a C makeover