Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 2,800 community submitted regex patterns...
0
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
PCRE2 (PHP >=7.3)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Submitted by
anonymous
-
9 months ago
1
...
138
139
140
MySQL PHP connection string
1
Regular Expression
PCRE (PHP <7.3)
/
(?=
.
*
dbname=
(
.
*
)
(?:
;
|
$
)
)
(?=
.
*
host=
(
.
*
)
(?:
;
|
$
)
)
/
U
Open regex in editor
Description
Capture dbname and host from MySQL PHP connection string
Submitted by
anonymous
-
9 years ago