Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
edgedb dsn parser
Open Workspace
JavaScript
Match
Created 2023-03-08 11:06
0
Regular Expression
/
(?<protocol>
edgedb:
\/\/
)(?<user>
(?:
\w
|
\d
)+
)
:
(?<pwd>
(?:
\w
|
\d
)+
)
@
(?<host>
(?:
\w
|
\d
)+
)
:
(?<port>
(?:
\d
)+
)
\/
?
(?<db>
(?:
\w
|
\d
)+
)?(?<params>
\/
?
.
*
)
$
/
gm
Description
parse an edgedb DSN string
Submitted by
dotlouis