Test, validate and match regular expressions
This regular expression matches contiguous word characters, specific punctuation marks (period, comma, exclamation, question mark, semicolon), or standalone apostrophes. It is commonly used in basic Natural Language Processing (NLP) pipelines to tokenize sentences into discrete words and symbols. The global and multiline flags ensure all matches are found across the entire input.