online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <algorithm> #include <iostream> #include <vector> #include <string> #include <regex> int main() { std::vector<std::string> sv{"01.name1", "030-name2", "100 - name3", " 55 . name4", "name5", "11.дигидроген монокислород"}; std::regex rx("^[^A-Za-zА-яЁё]*(.*)$"); // для UTF-8 // так: for (auto &s : sv) s = std::regex_replace(s, rx, "$1"); // или так: std::transform(sv.cbegin(), sv.cend(), sv.begin(), [&](std::string s) { return std::regex_replace(s, rx, "$1"); }); for (auto &&s : sv) std::cout << s << std::endl; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue