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