Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
[\S\s]+[\S]+
/

Description

Match a not-empty string. A string with only spaces or no characters is an empty-string. When match something, mathc all the string with the exception of the eventually space at the and

Submitted by Luca - 9 years ago