yuliji
10/23/2014 - 3:23 AM

regular expression match

regular expression match

m = /commit ([\w|\d]+)/.match(gitlog_output)
p m[0]
p m[1]