Regular Expressions 101

Community Patterns

yaml file names with alternatives

0

Regular Expression
Python

r"
[^/]+\.yml|[^/]+\.yaml
"
gm

Description

matches any file with *.yml or *.yaml

Submitted by anonymous - 3 years ago