Fix regex library usage.

The regex crate returns option types for Captures now, this commit
reflects that change.