File: query_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-- 976 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
``/product|?id=34``,"
Match any URL whose path is ``/product`` and contains
the query parameter ``id`` with the value 34

|

**Match:**

* ``http://example.com/product?cat=shoes&id=34``

**Don't match:**

* ``http://example.com/product?id=12``
* ``http://example.com/product/other?id=34``

"
``/product|?id=*``,"
Match any URL whose path is ``/product`` and contains
the query parameter ``id`` with any value

|

**Match:**

* ``http://example.com/product?cat=shoes&id=34``
* ``https://example.com/product?id=12&cat=clothes``
* ``https://example.com/product?id=``

**Don't match:**

* ``http://example.com/product?cat=shoes``
* ``http://example.com/product?cat=shoes&ids=34``

"
``?cat=shoes&cat=pants``,"Match any URL containing the query parameters ``cat`` with the values ``shoes`` or ``pants``

|

**Match:**

* ``http://example.com/product?cat=shoes&id=34``
* ``http://example.org/p?cat=pants``

**Don't match:**

* ``http://example.org/p?cat=pant``

"