Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-04-20 06:26
Flavor·PCRE (Legacy)

/
[a-zA-Z0-9\/\\\_\!\#\$\%\&\'\(\)\+\,\.\:\=\@\[\]\^\-\`\{\}~\s]*
/
g
Open regex in editor

Description

This regular expression removes all special characters including whitespaces which are allowed in windows path name, file name and folder name.

Submitted by Anirudh