Created
December 14, 2011 17:14
-
-
Save ploubser/1477502 to your computer and use it in GitHub Desktop.
JGrep matchers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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