/(?<=\b["']?password["']?[\s:-\=]["']?\b)(?:["']?.+?[;"'])/ig
Used to find password values when using known string formats. Clearly this does not cover every scenario.
something about a password 1 abc123 doggie
something about a password:'2 593def' doggie
something about a 'password':3 443593def; doggie
something about a password:4 5!93def; doggie
something about a password:"5 5!93dehkjhiu7tyf" doggie
something about a password:"6 5! 93de hkjh iu7tyf" doggie
something about a password:7 5!93def9786g*(; doggie
something about a "password":"8 mz 6abc 1;" doggie
something about a "password":"9 mz 6abc 2;" doggie another password=sneaky987;
something about a "Password":"10 mz 6abc 3;" doggie separate something about password"
something about a "Password":"11 mz 6abc 4;" doggie separate something about "
something about a "Password":"12 mz 6abc 5;" doggie separate something about '
something about a "PASSWORD":"13 mz 6abc 5;" doggie separate something about '
===============================================================
"Data Source=my.server.here;Initial Catalog=mydb;Persist Security Info=True;User ID=trustfort;Password=P@ssw0rd!;connect timeout=900"