Regular Expressions 101

Community Patterns

Matches operator (+-*/)

0

Regular Expression
ECMAScript (JavaScript)

/
[^\+\-\*\/]
/
g

Description

This regex escapes the 4 main signs of operations, -*/+. Good for calculating

Submitted by anonymous - 8 years ago