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
Struct memory ordering
Calculate H.C.F using recursion
Access namespace by unqualified manner
GetTypeName
Dynamic call
ArrayList
test string
MY FIRST OBJECT ORIENTED PROGRAM
Array-Based Heap Example Starter Code
Check if a year is leap year or not