Created
January 11, 2022 08:17
-
-
Save mohammadxali/78e9f31ce9ba2d1e80e7d2240cc5488b to your computer and use it in GitHub Desktop.
Regex to select all JSX comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\{\/\*(.*)\*\/\} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.