Regular Expressions 101

Community Patterns

Match slahses and numbers

1

Regular Expression
ECMAScript (JavaScript)

/
(\\+|\/+|\d)
/
g

Description

Match all forward and backward slashes and numbers in a string. Usefull for obtaining only text chars from address.

Submitted by Rado - 8 years ago