Regular Expressions 101

Enterprise

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

@"
[^0-9a-zA-Z|\\/ !#$%^&*()[{}\]:<>?_\\]+
"
gm

Description
Created·2022-08-18 16:41
Type·Match
Flavor·.NET 10.0 (C#)

see owasp recommendation for things to remove from a csv export.

this expression matches on following characters [. , ; + = - @ ' "] also carriage return

make sure to clear strings for whitespace and choose your preferred methods for additional security from the examples in the owasp documentation

https://owasp.org/www-community/attacks/CSV_Injection

Submitted by Anonymous
Open Workspace