<?php $number = sscanf('ABC123121234ABC', '%s%3s%2s%4s%s'); var_dump(vsprintf('%s%s-%s-%s%s', $number));
You have javascript disabled. You will not be able to edit any code.