Useful Regex (Regular Expressions)

Description JavaScript Java or C#
Integer No Spaces (anywhere) /^([\d]+)$|^$/g ^([\\d]+)$|^$
Empty String or Integer No Spaces (anywhere) /^([\d]+)$/g ^([\\d]+)$
Alfa or Numeric Characters Only /^[A-Za-z0-9]+$/ ^[A-Za-z0-9]+$
Alfa or Numeric Characters Plus listed Other Chars /^[A-Za-z0-9#!]+$/ ^[A-Za-z0-9#!]+$ Matches alpha or numeric or # or !