Modified source from Elastica\Prefix class
Added Regexp Unit test.
Merge pull request #495 from trash80/regexp-filter

Modified source from Elastica\Prefix class