Regular Expressions 101

Community Patterns

Shorten Path

0

Regular Expression
ECMAScript (JavaScript)

Description

takes a path i.e abc/edf/ghi/jkl and shortens it to abc/ … /jkl

Submitted by anonymous - a year ago