[PHP] again with the regex

2001-05-15 Thread Jerry Lake
I hate to keep asking regex stuff, but it is really evasive for me.. I'm pulling phone numbers out of a DB in the format of 1234567890, I would like to format them like (123) 456-7890 or something else that at least breaks them up a bit. any help is appreciated, Thanks, Jerry Lake Interface

RE: [PHP] again with the regex

2001-05-15 Thread Johnson, Kirk
To: [EMAIL PROTECTED] Subject: [PHP] again with the regex I hate to keep asking regex stuff, but it is really evasive for me.. I'm pulling phone numbers out of a DB in the format of 1234567890, I would like to format them like (123) 456-7890 or something else that at least breaks them up

RE: [PHP] again with the regex

2001-05-15 Thread scott [gts]
]] Sent: Tuesday, May 15, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] again with the regex I hate to keep asking regex stuff, but it is really evasive for me.. I'm pulling phone numbers out of a DB in the format of 1234567890, I would like to format them like (123) 456-7890

RE: [PHP] again with the regex

2001-05-15 Thread Jack Dempsey
, May 15, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] again with the regex I hate to keep asking regex stuff, but it is really evasive for me.. I'm pulling phone numbers out of a DB in the format of 1234567890, I would like to format them like (123) 456-7890 or something else that at least

RE: [PHP] again with the regex

2001-05-15 Thread Jerry Lake
PROTECTED] Subject: RE: [PHP] again with the regex Jerry, try sprintf(). Here's an example: sprintf((%s) %s-%s, substr($GLOBALS[appPhoneHome], 0, 3),substr($GLOBALS[appPhoneHome], 3, 3),substr($GLOBALS[appPhoneHome], 6, 4)) Kirk -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED