added regexp filtering