jayw has asked for the wisdom of the Perl Monks concerning the following question:
wise monks, I seek knowledge... In a regex substitution, how to do you follow a backreference with a literal numeric value?
Example
/some search criteria/$1$2$3[2010]$4$5/g'
thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: backreference followed by literal in regex substitution
by kennethk (Abbot) on Jan 05, 2010 at 18:01 UTC | |
by jayw (Initiate) on Jan 05, 2010 at 18:39 UTC | |
|
Re: backreference followed by literal in regex substitution
by merlyn (Sage) on Jan 05, 2010 at 17:52 UTC |