Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-07-06 19:28
Flavor·PCRE2 (PHP)

;
packages/(?<package>[^\/]+)/(?<version>[^\/]+)/(?<file>[^\/]+)
;
gm
Open regex in editor

Description

skip a word initially then get the package from pair of slashes

Submitted by anonymous