I want to do a preg_replace on a character string ('abc' in the example below) only if it's preceded by 5 characters. I've tried the following, but it doesn't work:
$var = preg_replace( '/(?<=[.]{5})(abc)/', '', $var );
Any suggestions?