Don't use a regexp, you don't need it and it'll only make things more complicated. Just alter each character individually.
for (0, -1) { $bar = substr $foo, $_, 1; $foo = substr($foo, $_, 1) = uc bar; }
In reply to Re: help with a regexp
by diotalevi
in thread help with a regexp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |