lib/facter/security_baseline/common/check_value_regex.rb
# check a value and return a value depending on regex
check a value and return a value depending on regex
check a value and return a value depending on regex
def check_value_regex(val, search)
  if val.match?(%r{#{search}})
    true
  else
    false
  end
end
def check_value_regex ( val , search ) if val . match? ( %r{ #{ search } } ) true else false end end
check a value and return a value depending on regex
check a value and return a value depending on regex
val
search