add regular expression in filter.
merged pc and smart version.