Added support for regular expression filtering for inputs

Quick feature patch, specifically required by our business to reduce the traffic over the cloud when we are only interested in lines of a file matching our criteria. Bandwidth was our concern here.

Disclaimer: I've never touched go before today, this took me about 30 mins and might require coding standard changes as you see fit.