Duplicate of: There is a function to use pattern matching (using regular expressions) in C++?
I'm not sure where one would use it... are there any parser-type functions that take some regex as an argument or something? I just found out that my editor will highlight a line after / as "regex" for C/C++ syntax which I thought was weird...