Skip to content

Instantly share code, notes, and snippets.

View marcelometal's full-sized avatar
🤘

Marcelo Jorge Vieira marcelometal

🤘
View GitHub Profile
@manekinekko
manekinekko / regex-es6-imports.js
Last active July 2, 2024 12:37
A regular Expression to parse ECMAScript6 import syntax
let regex = `import
(?:
["'\s]*
([\w*{}\n, ]+)
from\s*
)?
["'\s]*
([@\w/_-]+)
["'\s]*
;?