Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:bower_components\/[\w._-]+)(?=[\/a-zA-Z.]+?)
/
gm

Description

This is a short regex for match bower package and produce package absolute path for given by bower list --paths --json command

Submitted by anonymous - 6 years ago