Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Regex failure
#include <iostream> #include <regex> #include <string> int main() { std::string str = "Got event %s (%d) in state %s (%d), moving to state %s (%d)"; std::regex r = std::regex("([^%]*(%[.[0-9]*]?[a-z])*)*", std::regex::extended); try { if (std::regex_match(str, r)) std::cout << "matched\n"; else std::cout << "not matched\n"; } catch (std::regex_error& rex) { std::cout << "Oops: " << rex.what() << "\n"; } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
CStringA
seh exception
Progress bar
Policy class partial specialization inheritance
const_pointer_cast
sinem çalışma
Error log b is an undeclared identifier...
sharedptr emptiness
cv5
Kare-Küp Tablosu
Please log in to post a comment.