Regular Expressions 101

Community Patterns

0

unit_no_extraction

Python
CREMATRIX
Submitted by anonymous - 4 years ago
0

timestamp

Python
no description available
Submitted by anonymous - 4 years ago
0

parse sqs url

Python
no description available
Submitted by anonymous - 4 years ago

ES6 Imports/exports/dynamic: Getting the paths

1

Regular Expression
ECMAScript (JavaScript)

/
(?:(?<=(?:import|export)[^`'"]*from\s+[`'"])(?<path1>[^`'"]+)(?=(?:'|"|`)))|(?:\b(?:import|export)(?:\s+|\s*\(\s*)[`'"](?<path2>[^`'"]+)[`'"])
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago