Relative Content

Tag Archive for c++regexc++11

std::regex_match with custom string class

I’m trying to perform a regex on a string of custom characters and I’m stuck with MSVC 2015, C++11.
Is there any way to do this without converting my string to a std::u32string e.g.? I’d like to avoid the memory allocation and byte copying to a temporary object.
Here’s a small example: