Filtering with regex. Changing from jaccard metric to similarity.