used $~ instead of match() to obtain the captures
Merge pull request #9 from F-3r/remove-double-match

used $~ instead of match() to obtain the captures