remove emojis

This commit is contained in:
Jidong Xiao
2023-11-22 13:23:41 -05:00
parent 275b7924de
commit fd56900718

View File

@@ -285,7 +285,7 @@ Assume you store the post text content in a std::string variable called *text*,
```cpp ```cpp
// the text of the post is given as a std::string, extract hashtags from the text. // the text of the post is given as a std::string, extract hashtags from the text.
// define a regular expression to match hashtags with emojis // define a regular expression to match hashtags
std::regex hashtagRegex("#([\\w\\u0080-\\uFFFF]+)"); std::regex hashtagRegex("#([\\w\\u0080-\\uFFFF]+)");
// create an iterator for matching // create an iterator for matching