Regular Expressions 101

Community Patterns

Add space after period

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<=[.])(?=[^\s])
/
gm

Description

Add a whitespace after a period if it is followed by a non-whitespace character

Submitted by blacksmithop - a year ago