Regular Expressions 101

Library entries

Convert TypeScript CommonJS Import to ECMAScript Default Import

Vote

0

Regular Expression
javascript

/
^([ \t]*)import [*] as (\w+) from (?:(['])((?:(?:\.)+|[^\n\r'\\]+)+)[']|(["])((?:(?:\.)+|[^\n\r'\\]+)+)["])
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago