$x =~ s/([^\\])$/$1\\/ [download]
In reply to Re: Check last character of a string by pjotrik in thread Check last character of a string by theroninwins