You can clean it out using regex
s/#\d+$//; [download]
In reply to Re: How do remove trailing data? by ahmad in thread How do remove trailing data? by Anonymous Monk