<?php if (preg_match( '/\b((IA|IO|A|O|D)[0-9]{6})(-*(R|revised)[\w]*)*\b/i', trim("O529012"), $matches ) ) { var_dump($matches); }
You have javascript disabled. You will not be able to edit any code.