Switched to using the regex in the std library to hopefully get around gcc linker errors