Update hashCollect to allow custom regex

Hash collect can now take custom regex with a -r. The regex value must be incased in single or double quotes.
Example:
hashCollect -f filename -r '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'