Title |
Test
Find
MySQL Connection String
|
Expression |
Server=([\w\.]+?);\s*?(?:Port=(\d+?);\s*?)?Database=(\w+?);\s*?(?:(?:User)|(?:Uid))=(\w+?);\s*?(?:(?:Password)|(?:Pwd))=(\w*?);.* |
Description |
Matches a MySQL connection string if the arguments are in the specified order.
Fails if arguments are missing. |
Matches |
Server=127.0.0.1;Port=3306;Database=test;User=echilon;Password=P@55word;charset=utf8 | Server=pegasus;Port=3306;Database=test;Uid=johnnytightlips;Pwd=whosaskin; |
Non-Matches |
Server=127.0.0.1;User=echilon;Password=none;charset=utf8 |
Author |
Rating:
Not yet rated.
HJennerway
|
Source |
|
Your Rating |
|