I have found this question asked already but my code is so different from the others that I cannot seem to figure out how to apply what I found to my line of code in order to get it to work. I have tried adding # into the second line after the first set of quotes but cant figure out where the ending # should go or if that's even actually what I should be doing. Here is the code that is throwing the error. Also, not sure if this matters but this was originally an ereg_replace that I am turning to preg_replace since ere was depreciated.
echo preg_replace(
"\"><a [\?a-zA-Z0-9\-\.\:\"\=\_ >]+</a>([\t\n]+)<ul"," haschildren\\0",
The error I am seeing on the front end is:
Warning: preg_replace(): Unknown modifier '\'
Any help here would be greatly appreciated.
– Gynteniuxas Aug 01 '16 at 20:01