<?php preg_match_all("/([0-9]+)(?:\[(.*)\])?A/", "123[SomeText]A345[SomeOtherText]A678A", $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.