Match runs of multiple spaces.

Section: Editor Refactor Recipes

Find repeated spaces

regex
regex
 {2,}
Explanation

Useful in prose, YAML, or hand-edited lists.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Editor Refactor Recipes
Find simple `var` declarations
Find `var` declarations for modernization review.
OpenIn sheetregexsame section
Find CommonJS require calls
Find CommonJS imports for migration to ESM.
OpenIn sheetregexsame section
Find 3+ blank lines
Reduce excessive blank vertical spacing.
OpenIn sheetregexsame section
Find console logging
Find common `console.log(...)` calls.
OpenIn sheetregex1 tag match
Enable regex mode in search
Use regex search in VS Code find/replace.
Capture ES import path
Find JavaScript/TypeScript imports and capture the module path.