Created
January 23, 2020 02:14
-
-
Save Blasanka/15bf38fbd0dd20d72b407434b9b013e7 to your computer and use it in GitHub Desktop.
Revisions
-
Blasanka created this gist
Jan 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ void main() { String text = "Test #/first1hashtag test #/second2hashtag test."; RegExp exp = new RegExp(r"\B#\/"); exp.allMatches(text).forEach((match){ print(match.group(0)); text = text.replaceAll(match.group(0), ""); }); print(text); String text2 = "Test #/first1hashtag test #/second2hashtag test."; text2 = text2.replaceAll("#/", ""); print(text2); }