Added light weight is_match function

Can be used in Logstash code in some places
Sure