Re: [PHP] Replacement Question.

2005-04-22 Thread Richard Lynch
On Wed, April 20, 2005 7:22 am, Bob Palma said: > I have a database field that I need to read and do some conversion on. > Here is what the raw data from the database looks like: > > -- > 1084751309jpenaDisney Vignette Fleximon disk utilization > alert C:\ at 85%1084799703bpalmafixed.10847997

Re: [PHP] Replacement Question.

2005-04-20 Thread Bob Palma
Thanks. I took a look, and you were right. It was creating another entry in the array at the end, so I used an if statement checking the value of [1] and [2] in $array_of_fields. Thanks for all the great help Bob Palma [EMAIL PROTECTED] Duncan Hill wrote: On Wednesday 20 April 2005 16:01,

Re: [PHP] Replacement Question.

2005-04-20 Thread Duncan Hill
On Wednesday 20 April 2005 16:01, Bob Palma typed: > Wow! Thanks.. That works great. Just one small hitch though. After it > prints all of the data properly, it adds one more '$date' on the end > which gets printed as '12/31/69 7:00:pm'. Is there a way to do all > groups - 1 ? No reason for it

Re: [PHP] Replacement Question.

2005-04-20 Thread Bob Palma
Wow! Thanks.. That works great. Just one small hitch though. After it prints all of the data properly, it adds one more '$date' on the end which gets printed as '12/31/69 7:00:pm'. Is there a way to do all groups - 1 ? Bob Palma [EMAIL PROTECTED] Duncan Hill wrote: On Wednesday 20 April 200

Re: [PHP] Replacement Question.

2005-04-20 Thread Duncan Hill
On Wednesday 20 April 2005 15:22, Bob Palma typed: > I have a database field that I need to read and do some conversion on. > Here is what the raw data from the database looks like: > > -- > 1084751309jpenaDisney Vignette Fleximon disk utilization > alert C:\ at 85%1084799703bpalmafixed.10847

RE: [PHP] replacement

2005-01-25 Thread Jay Blanchard
[snip] I'm trying to replace a substr of the string that start from "Rated blahblah;" azt the end semicolon. Example: safsagfasdfsdfdsfRated by 4 people;fafafaafafaf -> return safsagfasdfsdfdsffafafaafafaf $replacement =""; $pattern = "/Rated.+;/"; $found_str = preg_replace($pattern, $replaceme