<?php echo preg_replace('/doc(\d+)rev/', '$1', 'doc1234rev5');
You have javascript disabled. You will not be able to edit any code.