At a first glance (apart from some escaping issues), this should be immediately possible, as any literal is a pattern itself (i.e. matching that exact literal).
The tricky part, however, lies in generating a random string from the pattern. Specifically, distinguishing between the plus sign in: [0-9]+: (meta-character) and + (literal).
E.g. instead of
we can write
At a first glance (apart from some escaping issues), this should be immediately possible, as any literal is a pattern itself (i.e. matching that exact literal).
The tricky part, however, lies in generating a random string from the pattern. Specifically, distinguishing between the plus sign in:
[0-9]+
: (meta-character) and+
(literal).