Skip to content

Instantly share code, notes, and snippets.

@donnellyjoe
Last active August 2, 2024 13:50
Show Gist options
  • Save donnellyjoe/662283cfd5b876079111df41b65b7f26 to your computer and use it in GitHub Desktop.
Save donnellyjoe/662283cfd5b876079111df41b65b7f26 to your computer and use it in GitHub Desktop.
Regex: Find named imports
import\s*\{[^}]*\bCOMPONENT_NAME\b[^}]*\}[\s\n]*from\s*['"]PACKAGE_NAME['"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment