Leer code Problem 10 solution
# @param {String} s
# @param {String} p
# @return {Boolean}
def is_match(s, p)
!s.match(Regexp.new("^" + p + "$")).nil?
end
# @param {String} s
# @param {String} p
# @return {Boolean}
def is_match(s, p)
!s.match(Regexp.new("^" + p + "$")).nil?
end