Added support for regular expression filtering for inputs