Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-04-22 16:29
Flavor·PCRE2 (PHP)

/
^(import|from)\s((\w+(,\s)?)*)
/
gm
Open regex in editor

Description

this regex with find the files/modules imported into a python file

Submitted by anonymous