Skip to content

Instantly share code, notes, and snippets.

@ploubser
Created December 14, 2011 17:14
Show Gist options
  • Save ploubser/1477502 to your computer and use it in GitHub Desktop.
Save ploubser/1477502 to your computer and use it in GitHub Desktop.
JGrep matchers
require 'jgrep.rb'
a = JGrep::JGrep.new
a.expression = "foo=bar"
puts a.match_value('{"foo":"bar"}')
a.value = {"foo" => "bar"}
puts a.match_expression("foo=bar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment