Debian Codegraph @

docs/patterns/query_patterns.csv

raw
1 Pattern, Behaviour
2 ``/product|?id=34``,"
3 Match any URL whose path is ``/product`` and contains
4 the query parameter ``id`` with the value 34
5
6 |
7
8 **Match:**
9
10 * ``http://example.com/product?cat=shoes&id=34``
11
12 **Don't match:**
13
14 * ``http://example.com/product?id=12``
15 * ``http://example.com/product/other?id=34``
16
17 "
18 ``/product|?id=*``,"
19 Match any URL whose path is ``/product`` and contains
20 the query parameter ``id`` with any value
21
22 |
23
24 **Match:**
25
26 * ``http://example.com/product?cat=shoes&id=34``
27 * ``https://example.com/product?id=12&cat=clothes``
28 * ``https://example.com/product?id=``
29
30 **Don't match:**
31
32 * ``http://example.com/product?cat=shoes``
33 * ``http://example.com/product?cat=shoes&ids=34``
34
35 "
36 ``?cat=shoes&cat=pants``,"Match any URL containing the query parameters ``cat`` with the values ``shoes`` or ``pants``
37
38 |
39
40 **Match:**
41
42 * ``http://example.com/product?cat=shoes&id=34``
43 * ``http://example.org/p?cat=pants``
44
45 **Don't match:**
46
47 * ``http://example.org/p?cat=pant``
48
49 "