File: path_patterns.csv

package info (click to toggle)
python-url-matcher 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372 kB
  • sloc: python: 627; makefile: 17
file content (49 lines) | stat: -rw-r--r-- 914 bytes parent folder | download
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``
"