How do I find and replace every letter in a word with a modified version of the word? Basically I need to find any letter [a-zA-Z] and replace it with [aA][zZ]. For Example:
my $word = "layer" my $new_word = "[l][a][y][e][r]"
2018-07-17 Athanasius added code tags within text
In reply to regex find and replace with a twist by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |