Skip to content

Commit

Permalink
have example write match / doesn't match
Browse files Browse the repository at this point in the history
  • Loading branch information
whackashoe committed Jul 15, 2015
1 parent 0d42250 commit b3ae66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example.cpp
Expand Up @@ -17,9 +17,9 @@ int main() {
.end_of_line();

// Use VerEx's test() function to find if it matches
std::cout << expr.test("https://www.google.com") << std::endl;
std::cout << (expr.test("https://www.google.com") ? "matches" : "doesn't match") << std::endl;

// Ouputs the actual expression used: ^(?:http)(?:s)?(?:://)(?:www.)?(?:[^ ]*)$
// Ouputs the actual expression used
std::cout << expr << std::endl;


Expand Down

0 comments on commit b3ae66e

Please sign in to comment.