<?php $x = preg_replace('/A.*?$/Ds', 'X', "A\n"); echo json_encode($x);
You have javascript disabled. You will not be able to edit any code.