On Friday 30 March 2001 06:47, you wrote:
> Ok, i have a text file with lines that looks like this:
>
> 14```value```value2`````value3
>
> This would be fine, except...there are sometimes more ```` than in
> other columns, so id like it to be
>
> 14``value``value2``value3

$new = preg_replace ('/`+/', '``', $old);

quite simple, eh?

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"World domination. Fast." (Linus Torvalds about Linux)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to