Implementation of filter.

	* Basic implementation of the filter feature with regex.
	* Some fixes