BBEdit Professional text and code editor for macOS
BBEdit Cheatsheet
Grep Patterns (BBEdit Search)

BBEdit supports full Perl-compatible regex in its search.

Pattern Matches
\b\w+\b Whole words
^\s*$ Blank lines
<[^>]+> HTML tags
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} IP addresses
#[0-9a-fA-F]{6} Hex color codes

Text Factories

Text Factories chain multiple operations into reusable workflows:

Step Type Example
Find & Replace Standardize formatting
Run Unix Filter Pipe through shell command
Change Case UPPER, lower, Title
Sort Lines Alphabetical, numeric
Remove Duplicates Unique lines only
Process Lines Delete/keep matching lines
Language Support
Language Features
HTML/CSS Syntax coloring, preview, tidy
JavaScript Syntax coloring, function nav
Python Syntax coloring, function nav
Markdown Syntax coloring, preview
Shell scripts Syntax coloring, execution
PHP Syntax coloring, function nav
Ruby Syntax coloring, function nav
JSON/YAML Syntax coloring, validation
BBEdit Shortcuts
Text Editing
Shortcut Action
⌘Z Undo
⌘⇧Z Redo
⌘C Copy
⌘X Cut
⌘V Paste
⌘⌥V Paste with previous clipboard
⌘D Select word
⌘L Select line
⌘⇧L Select paragraph
⌘⌥↑ Move line up
⌘⌥↓ Move line down
File Operations
Shortcut Action
⌘N New document
⌘O Open file
⌘S Save
⌘⇧S Save as
⌘W Close window
⌘⇧T New text window