<?php preg_match( '/^\[#(\d+)\]/', '[#1234] Subject', $matches); echo count($matches); // 1234
You have javascript disabled. You will not be able to edit any code.