Not sure how you can fix the "www" and "#" things, so you should ask a person who is familiar with regex (regular expressions).
It's easy to fix it with regex:
on $*:TEXT:/(www\56|\57\57\56|\72\57\57|\43,[a-zA-Z]|.com)/iS:#: {
The above regex string will match www. http:// .com and # It won't kick with just reading # itself.