I just want to replace values (probably hexadecimal) that starts with (%…) in the following string.
$string = 'hello@example.com%0A%0a%0B%0C%0F%0f%AA';
and the expected out put is, hello@example.com.
How can I do this? I’m using preg_replace but failing with regex pattern.
Try