Regular Expressions 101

Library entries

获取导入的模块相对路径

Vote

0

Regular Expression
javascript

/
(?<=\W(from|import|require\(|require\.context\(|import\()\s*)['"`]((\.+|src)\/.+?)['"$`]
/
g

Description

Loading markdown...
Submitted by 高乐天 - 4 months ago