<?php function inc($matches) { return ++$matches[1]; } $input = preg_replace_callback( "|(\d+)|", "inc", 'JPRSS1010110'); echo $input;
You have javascript disabled. You will not be able to edit any code.