I'll be brief as I can. I'm trying to use preg_replace's regex to find a digit, but I want to non destructively edit the string.
an example: (albeit this is an approximation due to data protection)
$subject_string = 'section 1.1: Disability ........' ;
$outcome = preg_replace( '/$section[\d.\d]+/' , '\<hr/\>' , $subject_string );
// $outcome will be: "\<hr/\>section 1.1: Disability ........"
Any help would be gratefully received