mongodb/mongo-perl-driver — pull request #51 by tianon (2012-12-10 20:40:11+00:00)
Title: Connection String URI Format

I've gone ahead and added an enhanced regex to properly support (almost) the full [Connection String URI Format](Connection String URI Format) (sans options, although they are included in the regex and I've added a TODO for parsing them, which wouldn't be too hard, they'll just have to be mapped to features of the Perl driver manually). I tried to make sure the whitespace and comments make such a long regex a little easier to understand and read.