Skip to content

Commit

Permalink
fix stupid character mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Queequeg92 committed Nov 25, 2014
1 parent 6393796 commit e7ca21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch17/ex17.17.18/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//!
//! Exercise 17.18
//! Revise your program to ignore words that contain "ei" but are not
//! misspellings, such as "albeit" and "neighbor".
//! misspellings, such as "albeit" and "neighbor."

#include <iostream>
using std::cout;
Expand All @@ -33,7 +33,7 @@ int main()
cout << "Please input a sequence of words:" << endl;
getline(cin, s);
cout << endl;
cout << "Word(s) that violiate the ¡°ei¡± grammar rule:" << endl;
cout << "Word(s) that violiate the \"ei\" grammar rule:" << endl;
string pattern("[^c]ei");
pattern = "[[:alpha:]]*" + pattern + "[[:alpha:]]*";
regex r(pattern, regex::icase);
Expand Down

0 comments on commit e7ca21b

Please sign in to comment.