<?php $sText = '[post:1]Some test here......[/post]'; $pattern = '/\[.*?\:(\d)](.+)\[.*?\]/'; preg_match_all($pattern, $sText, $a); var_dump($a);
You have javascript disabled. You will not be able to edit any code.