<?php $string = 'Chicago41Illinos9'; var_export( preg_replace_callback( '/\d+$/', fn($m) => ++$m[0], $string ) );
You have javascript disabled. You will not be able to edit any code.