Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-03-18 21:25
Flavor·Python

r"
(?P<workspace>(@[\w-]*)?)//(?P<package>[\w\-/]*)(?P<target>:(?P<target_all>all)|:(?P<target_named>[\w\-\./]+)|(?P<target_recursive>\.\.\.)|(?P<empty_target>(?<!/)))$
"
gm
Open regex in editor

Description

no description available

Submitted by anonymous