Regular Expressions 101

Community Patterns

Changed files in "git pull" output.

0

Regular Expression
Python

r"
((?:[a-zA-Z-_]*/)+)?([a-z]+\.py)
"
gm

Description

Get the changed files from the "git pull" output. Use finditer to get a list of Matches.

Submitted by anonymous - 2 years ago