in reply to regex to rename last _ with ,
I am not sure if I prefer this or reverse solutions. If strings are large and there are many underscores in a string, I'd use reverse.s/_([^_]*)$/,$1/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: regex to rename last _ with ,
by AnomalousMonk (Archbishop) on Sep 13, 2014 at 17:28 UTC | |
by dmitri (Priest) on Sep 14, 2014 at 12:22 UTC | |
by AppleFritter (Vicar) on Sep 14, 2014 at 14:57 UTC | |
by Grimy (Pilgrim) on Sep 15, 2014 at 09:36 UTC |