commit | edfa60a1d12ab746e088c216fafbfc4d7a6c50e6 | [log] [tgz] |
---|---|---|
author | Matt Clarkson <mattyclarkson@gmail.com> | Thu Jul 31 15:20:20 2014 +0100 |
committer | Matt Clarkson <mattyclarkson@gmail.com> | Fri Aug 22 14:55:46 2014 +0100 |
tree | f22410f58671a266f9b4439cd45f688525631983 | |
parent | fac16a662efb4ded79f74c795d81bdd688cb49a7 [diff] [blame] |
Resolve regular expression engines
diff --git a/cmake/std_regex.cpp b/cmake/std_regex.cpp new file mode 100644 index 0000000..4f227d4 --- /dev/null +++ b/cmake/std_regex.cpp
@@ -0,0 +1,8 @@ +#include <regex> +#include <string> +int main() { + const std::string str = "test0159"; + const std::regex re("^[a-z]+[0-9]+$", std::regex_constants::extended | std::regex_constants::nosubs); + return std::regex_search(str, re) ? 0 : -1; +} +