[PHP] Regex for ... genealogical names

2011-01-01 Thread Lester Caine
A slightly more complex problem than phone numbers ... It is a sort of convention to use the format 'JohnDoeSMITH' or 'John Doe SMITH' where each forename starts with a capital and the surname is in upper case. I have a crude method of scanning for the capitals and splitting this to give me an

Re: [PHP] Regex for ... genealogical names

2011-01-01 Thread Ashley Sheridan
On Sat, 2011-01-01 at 09:46 +, Lester Caine wrote: > A slightly more complex problem than phone numbers ... > > It is a sort of convention to use the format 'JohnDoeSMITH' or 'John Doe > SMITH' > where each forename starts with a capital and the surname is in upper case. I > have a crude m

[PHP] Re: Regex for ... genealogical names

2011-01-01 Thread Al
On 1/1/2011 4:46 AM, Lester Caine wrote: JohnDoeSMITH' or 'John Doe SMITH' Try this. not tested. First, which adds spaces as needed. e.g. JohnDoeSMITH > 'John Doe SMITH' $newName=preg_replace("%(?<=[a-z])([A-Z])", " $1", $name);//Cap following low case, add space before it Next, alphas fol

[PHP] Newbie Question

2011-01-01 Thread Adolfo Olivera
Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!! PS: Please, feel free to educate me on how to address the m

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: > Hi, >I'm new for php. Just trying to get my hello world going on godaddy > hosting. Can't getting to work. I think sintax it's ok. I was understanding > that my shared hosting plan had php installed. Any suggestions. Thanks, > > Happy 2011!

Re: [PHP] Newbie Question

2011-01-01 Thread David Robley
Joshua Kehn wrote: > On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: > >> Hi, >>I'm new for php. Just trying to get my hello world going on godaddy >> hosting. Can't getting to work. I think sintax it's ok. I was >> understanding that my shared hosting plan had php installed. Any >> sugges

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:50 PM, David Robley wrote: > > And normally would need to be saved as a .php file so the contents will be > handled by php. > > > Cheers > -- > David Robley > > A fool and his money are my two favourite people. > Today is Boomtime, the 2nd day of Chaos in the YOLD 3177.

Re: [PHP] Newbie Question

2011-01-01 Thread Adolfo Olivera
Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Document On Sat, Jan 1, 2011 at 9:55 PM, Joshua Kehn wrote: > On Jan 1, 2011, at 7:50 PM,

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 8:37 PM, Adolfo Olivera wrote: > Sorry, here is the code. The .php extension is a requirement? Can't it b > embedded on a .html file? > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > Untitled Document > > > > $a =