rPunctuationSelector constant Null safety

String const rPunctuationSelector

Matches all punctuation. Excludes periods followed by word characters or lower-case text (even if separated by white-space) to avoid selecting periods in abbreviations.

Implementation

static const rPunctuationSelector =
    r"[\!:;,\-—]+(?=[^a-zA-Z0-9À-öø-ÿ¥Œ€@™#-\&_\'-]|$)|[.](?=$|[^,.!:"
    '"'
    r"'[\]{}();a-zA-Z0-9\s]|\s[A-Z0-9])";