RegEx for parsing peoples names?

From: Ben Fidge (ben.fidge_at_btopenworld.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 13:09:06 +0100

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

  • Re: 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)
  • Re: Naming Standard conventions for NT Groups
    ... Most clients use peoples names either as [firstname, surname] or [surname, ... One of my clients has several separated networks administered differently. ... and some use the persons national insurance number. ...
    (microsoft.public.sqlserver.security)
  • 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)