Hi there,
I try to use a digit after a backreference command, like this.
preg_replace("/([a-z]){1}([0-9]?){1}(_[0-9]+?[.][a-z]{3})$/i","\1$nr\3",$var);
In the \1$nr\3 part var $nr = 6. This gives a problem. I think it is because the first backreference is now parsed as \16 instead of \1 following a 6.
can someone tell me how to solve the problem?
It's probably verry easy, but I can't figure it out.
Thanks in advance