In regular expressions we can escape special characters like: /\. - dot/
And what if I want to "escape" a substring: /Some **esc.{2}aped** phrase/ (to match this pattern "Some esc.{2}aped phrase") ? Is there any such character sequences (to replace **)?
PHP example. I have pattern
$pattern = "/Some unknown text {$here}: (\\d+)/";
with UTF8 string $here. And want to test UTF8 string $input with $here substituted "as is" (ignore special characters in $here):
preg_match( $pattern, $input, $matches );
Thanks