cstrong has asked for the wisdom of the Perl Monks concerning the following question:
Is this even possible do to in a nice succinct one liner?$line = "0165451234599123459935589"; $line =~ s/12345(99)1234599/$replace/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Specific substitution in regular expressions
by moritz (Cardinal) on Sep 17, 2008 at 10:08 UTC | |
by cstrong (Beadle) on Sep 17, 2008 at 10:20 UTC | |
|
Re: Specific substitution in regular expressions
by svenXY (Deacon) on Sep 17, 2008 at 09:43 UTC | |
|
Re: Specific substitution in regular expressions
by apl (Monsignor) on Sep 17, 2008 at 09:48 UTC | |
by svenXY (Deacon) on Sep 17, 2008 at 09:55 UTC | |
|
Re: Specific substitution in regular expressions
by jonadab (Parson) on Sep 17, 2008 at 10:20 UTC |