Regular Expressions 101

Community Patterns

Community Library Entry

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) - 9 years ago