in reply to How to escape metacharacters without backslash it in regex?
my $good_re = quotemeta $evil_re; m/$good_re/;
But both methods use backslashes under the hood as well.
Perl 6 regexes will have '...' and "..." quoting (and implicit grouping), there you don't need backslashes at all.
|
|---|