Regular Expressions 101

Community Patterns

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