1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
Pattern, Behaviour
``/articles/``, "
Match any URL whose path starts by ``/articles/``.
|
**Match:**
* ``http://example.com/articles/an_article?id=23#main``
* ``https://foo.com/articles/``
**Don't match:**
* ``https://foo.com/articles``
"
``example.com/index.html|``, "
Match any URL whose domain is ``example.com`` or ``www.example.com`` and
path is exactly ``/index.html``
|
**Match:**
* ``http://example.com/index.html?id=24``
* ``https://www.example.com/index.html#main``
**Don't match:**
* ``http://shop.example.com/index.html``
* ``http://shop.example.com/index.html_2``
"
``/images/*.jpg|``, "
Match any URL whose path starts by ``/images/`` and whose path ends by ``.jpg``
|
**Match:**
* ``http://example.com/images/foo.jpg``
* ``https://example.org/images/other/subpath/FOO.JPG?id=23``
**Don't match:**
* ``http://example.com/images/foo.jpeg``
* ``http://example.com/images/foo.jpg_2``
"
|