vendredi 23 janvier 2015

escape forward slash by backslash using regular expressions of C++11

I need to match a string of any characters escaping forward slashes by backslash.


Some examples:



sdfsdfkjl/sdf // does not match
sdfsdfkj\/sdf // does match
sdfsdfk\\/sdf // does not match
sdfsdf\\\/sdf // does match

Aucun commentaire:

Enregistrer un commentaire