How would I use preg_replace to replace everything between two qualifiers without replacing the qualifiers themselves? In the following example, I'm wanting to replace everything between the "x" and the "p" but what happens is that the "x" and the "p" also get replaced:
preg_replace('/(x).*?(p)/',......,'example')
will output: e......le
instead of: ex......ple
Thank you 🙂