Nicole Mazzuca | 9ddf22f | 2018-07-28 15:18:43 -0700 | [diff] [blame] | 1 | // compile flags: |
| 2 | // [x86] cl /FA /EHsc /c vc-regex-example.cpp /Favc-regex.asm |
| 3 | // then, delete all non-regexTest lines |
| 4 | #include <string> |
| 5 | #include <regex> |
| 6 | |
| 7 | void regexTest() { |
| 8 | std::string s = "Some people, when confronted with a problem, think " |
| 9 | "\"I know, I'll use regular expressions.\" " |
| 10 | "Now they have two problems."; |
| 11 | auto self_regex = std::regex("REGULAR EXPRESSIONS", |
| 12 | std::regex_constants::ECMAScript | std::regex_constants::icase); |
| 13 | } |