K
Klaus
> as they always come in pairs and are handled natuarally by m{...
They don't always come in pairs. What if the literal string you wanted
to match were '{0,0' ?
I was talking about '{' and '}' as metacharacters. A '{' in /a{0,0}/
is a metacharacter and always comes paired with a '}'. Those { }
metacharacters are never escaped in a regexp.
The '{' in '{0,0' is a literal curly, and they, of course, can come in
any number or combination. Any { } literal has to be always escaped in
a regexp.