Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string sql ("DROP * FROM users;");
- // string sql ("sam aaron");
- regex words ("[\\w]+");
- sregex_token_iterator i (sql.begin (), sql.end(), words);
- vector <string> list (i, sregex_token_iterator ());
- for (auto j : list) {
- cout << j << endl;
- }
Add Comment
Please, Sign In to add comment