Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Regex regex = new Regex(@"'[ws]+[.!?]?'");
- MatchCollection matches = regex.Matches(text);
- foreach (Match match in matches)
- {
- Console.WriteLine(match);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement