japhy learned something today -- \Q, \L, and \U nest with their respective \E as shown above.my $w = $input->param('wrapper'); for (keys %input) { $report =~ s/\Q$w$_$w/$input->param($_)/eg; $report =~ s/\Q$w\L$_\E$w/$input->param(lc)/eg; $report =~ s/\Q$w\U$_\E$w/$input->param(uc)/eg; }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
In reply to Re: REGEX question
by japhy
in thread REGEX question
by S_Shrum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |