In c++11, if I want to match all txt files starting with only lower characters e.g. [a-z]+\.txt
writing in regular expression syntax, why do I have to use double escape which is std::regex txt_regex("[a-z]+\\.txt")
? Is there any special meaning for \.
in C++?
Aucun commentaire:
Enregistrer un commentaire