$str =~ s/\..$//; [download]
# Under Construction [download]
In reply to Re: New regex trick... by vladb in thread New regex trick... by japhy