skip to Main Content

Regex of PostgreSQL Connection String

I am writing a regular expression for capturing the connection string of PostgreSQL. The format of the connection string as follows: (postgresql|postgres)://[userspec@][hostspec][/dbname][?paramspec] where userspec is: user[:password] and hostspec is: [host][:port][,...] and paramspec is: name=value[&...] Here, the userspec, port, dbname and…

VIEW QUESTION
Back To Top
Search