s/_$//; The dollar anchor associates underscore with end of string.
After Compline,Zaxo
In reply to Re: Regex help by Zaxo in thread Regex help by Anonymous Monk