<?php $input = "[modid=256]"; preg_match('~=(.*?)]~', $input, $output); echo $output[1]; // 256 ?>
You have javascript disabled. You will not be able to edit any code.