Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?:import(?:\s*){addCssStyle}(?:\s*)from(?:\s*)"(?:[^"]*)")
/
g

Description

match import module expression: import{mod}from"url/url/file.js" import {mod} from "url/url/file.js"

Submitted by handoko75@gmail.com - 2 years ago