Regular Expressions 101

Community Patterns

1...45678...884

city regex opposite

0

Regular Expression
ECMAScript (JavaScript)

/
((?![a-zA--ž\d\s\.,'&/-]).)
/
gm

Description

Do the opposite so we can test for invalid characters

Submitted by anonymous - a year ago