iv got a question in php regex.
For example if we use
<?php
$str = '[code]anything[/code]';
preg_replace('#\[code\](.*?)\[/code\]#is', 'Code:<pre>$1</pre>', $str)
?>
How i can make some thing like this to count the content
<?php
$str = '[code]anything[/code]';
preg_replace('#\[code\](.*?)\[/code\]#is', 'Code:'.strlen($1).'<pre>$1</pre>', $str)
?>
and that is my question.
hope i will find answer thanks.
How about: