Re: how to add a space using a regex
- From: anno4000@xxxxxxxxxxxxxxxxxxxxxxx (Anno Siegel)
- Date: 31 Aug 2005 09:45:38 GMT
John Bokma <john@xxxxxxxxxxxxxxx> wrote in comp.lang.perl.misc:
> "Bernard El-Hagin" <bernard.el-haginDODGE_THIS@xxxxxxxxxxxxx> wrote:
>
> > I suggest that two letter first names are quite rare,
>
> Not 2 letter first names, but for example TadMcClellan
How is that an objection?
s/([[:alpha:]][[:lower:]])([[:upper:]])/$1 $2/g;
makes "Tad McClellan" as it should.
Ed, Al, Ty, Bo, Jo, Ma, Lu and Vi would be out of luck.
A US name list (from the Census Bureau) lists 6 male and 27(!) female
two-letter names.
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
.
- References:
- how to add a space using a regex
- From: Jerry Preston
- Re: how to add a space using a regex
- From: Anno Siegel
- Re: how to add a space using a regex
- From: Bernard El-Hagin
- Re: how to add a space using a regex
- From: John Bokma
- how to add a space using a regex
- Prev by Date: split, no repeat- Regular expression
- Next by Date: Re: how to add a space using a regex
- Previous by thread: Re: how to add a space using a regex
- Next by thread: Re: how to add a space using a regex
- Index(es):
Relevant Pages
|
|