Re: Checking an array against user input?

From: Date: Wed, 27 Feb 2008 06:56:45 +0000
Subject: Re: Checking an array against user input?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-270259@lists.php.net to get a copy of this message
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. | `------------------------------------------------------------'

« previous php.general (#270259) next »