Regular expression question with .NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Gaskell

    #1

    Regular expression question with .NET

    Dear all

    I'm having problems generating a regular expression in .NET, having
    just started using regular expressions.

    I am trying to validate a user's full name. So far I have:

    [\D]* as the regular expression to prevent the user entering digits.

    However I also want to disallow the following characters which have no
    place in a name: !"£$%^&*()_-+=@:;{[}]~#>.<,?/|\`¬

    Can someone please tell me what I need to do to add to my current
    regular expression above in order to do this?

    Thanks very much
    Andrew
Working...