Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-04-21 17:39
Flavor·Python

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

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)