Skip to content

Instantly share code, notes, and snippets.

@dieghernan
Created February 3, 2026 17:28
Show Gist options
  • Select an option

  • Save dieghernan/2ceab30023fc8b4b2ac3eafbc814ea62 to your computer and use it in GitHub Desktop.

Select an option

Save dieghernan/2ceab30023fc8b4b2ac3eafbc814ea62 to your computer and use it in GitHub Desktop.
Pattern matching for VSCode

Pattern matching

Multiple whitespaces between words

https://regexr.com/8jlcq

\b\s{2,}\b

Exact match of two whitespaces after a string

Example: after #'

https://regexr.com/8jlct

#'\s{2}(?!\s)

Two consecutive lines with only this string: #'

^#'\r?\n^#'$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment