Iff you want to have a replacement like 'a[0]' => 'a[1]', you either have to run it through quotemeta or escape it by hand if you want to use qr//, don't you?
Exactly my point. I do not see the benefit of qr// for this purpose.
But in the end, without the OP posting some realistic examples, this discussion is pretty much pointless.
In reply to Re^5: reg. expr. multiple substitutions
by BrowserUk
in thread reg. expr. multiple substitutions
by silentius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |