Closed ggrossetie closed 9 years ago
The regexp could be simpler:
/\.a(sciidoc|doc|d|sc)/i
Meaning, containing .asciidoc, .adoc, .ad, .asc but I think this is too vague. Instead I'm using a more complex regexp:
.asciidoc
.adoc
.ad
.asc
/\.a(sciidoc|doc|d|sc)$|\.a(sciidoc|doc|d|sc)\?|/i
Meaning, ending with .asciidoc, .adoc, .ad or .asc OR containing .asciidoc?, .adoc?, .ad? or .asc?. With this regexp the following URI will not match:
.asciidoc?
.adoc?
.ad?
.asc?
http://some/uri/with/.ad/index.html
The regexp could be simpler:
Meaning, containing
.asciidoc
,.adoc
,.ad
,.asc
but I think this is too vague. Instead I'm using a more complex regexp:Meaning, ending with
.asciidoc
,.adoc
,.ad
or.asc
OR containing.asciidoc?
,.adoc?
,.ad?
or.asc?
. With this regexp the following URI will not match: