Fix regex library usage.

The regex crate returns option types for Captures now, this commit
reflects that change.
Merge pull request #3 from BenTheElder/master

Fix regex library usage.