escaper

A range that lazily produces a string output escaped to be used inside of a regular expression.

escaper
(
Range
)
(
Range r
)

Examples

import std.algorithm.comparison;
import std.regex;
string s = `This is {unfriendly} to *regex*`;
assert(s.escaper.equal(`This is \{unfriendly\} to \*regex\*`));

Meta