Would anyone know to tell me why this regular expression of the error in PHP?
/:[^\/\]*/
It is being used this way:
return '/' . preg_replace('/:[^\/\]*/', '([^\/]*)', $value) . '/';
I'm trying to "break" one counter against another but PHP behaves as if it were breaking the "" character and returns me the error: "Compilation failed: missing terminating for character class".
Is there another way I can specify a counter literal in a regular PHP expression?