YESSSS! That works perfectly ^_^. Thank you very much for helping out a PHP
noob lol.
"Robert Cummings" <robert@xxxxxxxxxxxxx> wrote in message
news:1204095406.18306.1121.camel@xxxxxxxxxx
On Wed, 2008-02-27 at 01:53 -0500, Keikonium wrote:
Here is an example of the text I want to update:
[01:19:23]And the city lit up the night
[01:21:04]With the green glow of the Camlin Hotel
[01:37:49][01:26:82]Ghosts are in the radio,
[01:42:13][01:31:53]They sing along, they sing along
[02:02:14]It's on and the ghosts in the radio
[02:05:80]Are singing along
<?php
$text =
preg_replace(
'/\[([[:digit:]]{2}):([[:digit:]]{2}):([[:digit:]]{2})\]/ms',
'[\\1:\\2.\\3]', $text );
?>
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php