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/
In reply to Re: regex to rename last _ with ,
by dmitri
in thread regex to rename last _ with ,
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |