Michael
thanks very much! I think I was making it too difficult!
Regards
Andrew
Michael Lang <ml@nospam.com> wrote in message news:<Xns93EC7B7A0E3Flang1474icqmailcom@207.46.248 .16>...[color=blue]
>
agaskelluk@yahoo.com (Andrew Gaskell) wrote in
> news:63c811db.0309040631.56201437@posting.google.c om:
>[color=green]
> > 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
> >[/color]
>
> Why not just specify what the name CAN contain. It is much easier...
>
> [a-zA-Z]*[/color]