Because <regex>
is not yet implemented in libstdc++, as documented here (§28).
For now, use Boost.Xpressive or Boost.Regex instead.
More Related Contents:
- Is gcc 4.8 or earlier buggy about regular expressions?
- What does std::match_results::size return?
- Difference between std::regex_match & std::regex_search?
- regex replace with callback in c++11?
- Using regex lookbehinds in C++11
- Is this C++11 regex error me or the compiler?
- c++11 regex slower than python
- Do C++11 regular expressions work with UTF-8 strings?
- Regex not working as expected with C++ regex_match
- C++ regex_match not working
- Using paragraphs 8.5.3p4 and p5 in the C++11 Standard, how do I prove that the snippet below doesn’t compile?
- How do I terminate a thread in C++11?
- Why does this C++ snippet compile (non-void function does not return a value) [duplicate]
- What is the type of lambda when deduced with “auto” in C++11?
- How to specialize std::hash::operator() for user-defined type in unordered containers?
- How to initialize std::array elegantly if T is not default constructible?
- Why does auto x{3} deduce an initializer_list?
- How do I initialize a member array with an initializer_list?
- Template tuple – calling a function on each element
- what is the difference between set and unordered_set in C++?
- C++ parameter pack, constrained to have instances of a single type?
- C++11 way to index tuple at runtime without using switch
- Initializing container of unique_ptrs from initializer list fails with GCC 4.7
- What happens when you call data() on a std::vector?
- How to escape a string for use in Boost Regex
- What is the class keyword before a function argument?
- Move out element of std priority_queue in C++11
- When must you pass io_context to boost::asio::spawn? (C++)
- Why can’t std::function bind to C-style variadic functions?
- Range based for loop in function which passes an array as value [duplicate]