How do I clear incorrect passwords from a log without deleting the log?

log security

If you notice in a legacy Data Tools log that failed passwords are stored in clear text but you don't want to delete the log entirely.

Open the log in Notepad ++

Open Find and Replace (Ctrl + H).

In the "Find what" field, enter this regex: Password\([^)]*\)

Leave the "Replace with" field empty (to remove the entire match).

Make sure "Search Mode" is set to "Regular expression" (bottom left corner of the Find and Replace window).

Click "Replace All".

Example

Before:

Password(12345)
Password(myp@ssword)
Charlie Password(supersecure)
After:
the entries will be deleted.