Re: RegEx for parsing peoples names?
From: Bonj (benjtaylor)
Date: 10/27/04
- Next message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to display an image?"
- Previous message: Jon Skeet [C# MVP]: "Re: C# specification omission? Lack of static interface properties"
- In reply to: Ben Fidge: "RegEx for parsing peoples names?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 23:05:58 +0100
"\w+\s+\w+"
?
"Ben Fidge" <ben.fidge@btopenworld.com> wrote in message
news:OlmJC3BvEHA.612@TK2MSFTNGP15.phx.gbl...
> Hi
>
> I'm trying (and failing) to create and regular expression for parsing
> peoples names. I simply want to make sure that a firstname and surname, at
> least, can be extracted.
>
> For example, "Ben Fidge" would pass, however, "Ben", "Fidge", "Ben-Fidge"
> and BenFidge" wouldn't.
>
> I want to use a RegularExpressionValidator on an ASP.NET page to ensure
> that people provide first and surnames in a single text box.
> Unfortunately, I can't provide two text boxes for legacy reasons.
>
> TIA
>
> Ben
>
- Next message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: How to display an image?"
- Previous message: Jon Skeet [C# MVP]: "Re: C# specification omission? Lack of static interface properties"
- In reply to: Ben Fidge: "RegEx for parsing peoples names?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|