Regular Expressions 101

Community Patterns

Match all files in root dir

1

Regular Expression
Python

r"
^/(([a-zA-Z]*)(\.[a-zA-Z\?\=\&]*))?$
"
gm

Description

Intended for use on a webserver. Only matches files in / and excludes files, whcih could be in subfolders (/myfile).

Submitted by rugk (rugk <at> posteo.de) - 8 years ago