Oh good call, I'll do that instead. The `\A` was to match beginning of string, rather than line, in the hope of avoiding confusing error messages if someone has a connection string like "not really\npostgres://".