Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
regex
#include <iostream> #include <iterator> #include <regex> #include <string> int main() { std::string text = "Quick brown fox\\351"; std::regex vowel_re(R"(\\\d{3})"); // write the results to an output iterator std::regex_replace(std::ostreambuf_iterator<char>(std::cout), text.begin(), text.end(), vowel_re, "*"); // construct a string holding the results std::cout << '\n' << std::regex_replace(text, vowel_re, "[$&]") << '\n'; }
run
|
edit
|
history
|
help
0
Copy uint64 data into uint32 with padding
hw 1 os
Division by zero exception example
Linear search
MPL 2-1
Balanced Insert Example
problem_name_2
move_string
Erase a std::unordered_map::local_iterator by key
12/2