Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
[\w]+.*\.[jp][pn]e?g$
"
gm

Description

Regular expression to match pictures or photographs in the machine

Submitted by Moses Otieno - 3 years ago