in reply to Do regex using hash keys to wrapped template tokens
Those should work you.# use ${w}lc instead of $w\lc # because $w\lc is makes \l make "c" lowercase! $page_template =~ s/\Q$w$_$w/$input->param($_)/eg; $page_template =~ s/\Q${w}lc_\L$_\E$w/$input->param(lc)/eg; $page_template =~ s/\Q${w}uc_\U$_\E$w/$input->param(uc)/eg;
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who could use a job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Do regex using hash keys to wrapped template tokens
by S_Shrum (Pilgrim) on Feb 15, 2002 at 05:08 UTC | |
by japhy (Canon) on Feb 15, 2002 at 06:38 UTC | |
by S_Shrum (Pilgrim) on Feb 16, 2002 at 00:40 UTC | |
by ChemBoy (Priest) on Feb 19, 2002 at 02:15 UTC | |
by S_Shrum (Pilgrim) on Feb 16, 2002 at 01:06 UTC |