blob: ac25b9a89dc6448eccd54b3738a949880c0578b5 [file] [log] [blame] [raw]
Nicole Mazzuca9ddf22f2018-07-28 15:18:43 -07001// 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
7void 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}