What I want to do is that the name should only consist of .
, -
, _
, and alphanumeric characters in any order. So in order to implement this, I am using the following RegEx.
@"^[a-zA-z0-9_.-]+$"
But the above RegEx is accepting Backslash characters and ` (Backtick) sign also.