Remove lines from log files in BBEdit

in bbedit for macos how can i remove all the lines in a file that have the sting “[StringToRemoveHere”

In BBEdit for macOS, you can remove all lines containing a specific string using the ‘Find and Replace’ feature with a regular expression. Here’s how to do it:

Open the file in BBEdit.

Go to ‘Search’ in the menu bar, and select ‘Find…’ (or press Command + F).

In the ‘Find’ dialog box, make sure the ‘Grep’ checkbox is enabled. This allows you to use regular expressions in your search query.

In the ‘Find’ field, enter the following regular expression:


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Share via
Copy link