clean the custom regex filter