Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?!^[\p{Z}]|.*[\p{Z}]$).*$
/
gmu

Description

Disallows all space-like characters -- see https://www.fileformat.info/info/unicode/category/Zs/list.htm -- at the start or end of the string

Submitted by anonymous - a year ago