eversuhoshin has asked for the wisdom of the Perl Monks concerning the following question:
Hello~
I need help with simple substitution. I have financial report files that are in format of "name_year." e.g. (GE_2002).
Unfortunately, somewhere miscoded such as Goldman_Sachs_2002.
Can anyone help me write a substitution code that only keeps the last underscore "_"?
So Goldman_Sachs_2002 becomes GoldmanSachs_2002.
Thank you so much for your time and consideration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple substitution
by BrowserUk (Patriarch) on Mar 18, 2011 at 03:39 UTC | |
|
Re: Simple substitution
by wind (Priest) on Mar 18, 2011 at 04:10 UTC | |
by eversuhoshin (Sexton) on Mar 18, 2011 at 15:00 UTC |