Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But i encountered a problem
For eg I came across two files name as follows
I would like to remove the last underscore in file2 to get Hello_world but i would like to keep file1 as it is. How do i do so?
i have tried s/_/$1/ but it doesn't works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex help
by Zaxo (Archbishop) on May 22, 2005 at 22:46 UTC | |
|
Re: Regex help
by ww (Archbishop) on May 23, 2005 at 01:20 UTC | |
|
Re: Regex help
by sweetblood (Prior) on May 22, 2005 at 23:44 UTC |