We should be quoting the markers - the fact that we are using preg_replace should be invisible to the caller.  Any special character sequences `\A` or `\s` should probably be checked specially and done via class constants or some such method.