# File lib/new_relic/agent/rules_engine/replacement_rule.rb, line 33 def matches?(string) if @each_segment string.split(SEGMENT_SEPARATOR).any? do |segment| segment.match(@match_expression) end else string.match @match_expression end end