I've a C++11 file using regex that I'm converting to a C++98 file. In the file, I've this line that does some manipulation that I don't understand.
regex separator_regex(R"((([[:alpha:]]:[^:;]*)|([^:;]*))([:;]|$))");
.
If I'm correct, seperator_regex
is a regex class, and R is used as a raw string literal so the code doesn't exit out. However, what is the rest of the snippet trying to do?