Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-12-05 00:08
Flavor·PCRE (Legacy)

/
^([\s*\w]+[\.\\\/\-\@\s]*)+[\s\w]$
/
Open regex in editor

Description

This is a input regex for invaliding inputs that are likely to be scripts. this is a way to hidder xss attacks on your web application and api.

Submitted by ivan