Skip to content

Instantly share code, notes, and snippets.

@MohammadxAli
Created January 11, 2022 08:17
Show Gist options
  • Save MohammadxAli/78e9f31ce9ba2d1e80e7d2240cc5488b to your computer and use it in GitHub Desktop.
Save MohammadxAli/78e9f31ce9ba2d1e80e7d2240cc5488b to your computer and use it in GitHub Desktop.
Regex to select all JSX comments
\{\/\*(.*)\*\/\}
@MohammadxAli
Copy link
Author

Useful when you are trying to select all JSX comments in a file within VSCode, especially if you want to make a find and replace to remove all of them.
Enable Use Regular Expression (Alt + R) option when searching for patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment