Re: RegEx for parsing peoples names?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bonj (benjtaylor)
Date: 10/27/04


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
>



Relevant Pages

  • RegEx for parsing peoples names?
    ... I'm trying to create and regular expression for parsing ... peoples names. ... I simply want to make sure that a firstname and surname, ...
    (microsoft.public.dotnet.languages.csharp)
  • String parsing with VB 6.0 (SP4)
    ... Should I be able to use regular expression scripting for string parsing with ... Most of what I find is oriented towards its Web use for parsing ... I've ticked the Project Components MS Script Control 1.0 and got the Script ... A simple example getting a line, using Line Input, regular expression ...
    (microsoft.public.scripting.vbscript)
  • Re: Syntax highlighting servlet
    ... > highlighting engines use regular expression substitutions, ... Is the extra effort involved in parsing ... Whether it's worth it is, of course, your ...
    (comp.lang.java.help)
  • Re: pregexp vs. read
    ... >> since it can only parse a limited subset of grammars. ... This is for a IRC bot I have started to work ... Perhaps my regular expression parser ... parsing a text string. ...
    (comp.lang.lisp)
  • Re: RegEx for parsing peoples names?
    ... know it is invalid. ... like overkill for something so simple. ... > I'm trying 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. ...
    (microsoft.public.dotnet.languages.csharp)