File: basic_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 (34 lines) | stat: -rw-r--r-- 672 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
Pattern, Behaviour
The empty string, Universal pattern. Match any URL
``example.com``, "

Match any URL whose domain is ``example.com`` or any of its subdomains.

|

**Match:**

* ``http://example.com/anything?id=24``
* ``https://www.example.com/page#with_fragment``

**Don't match:**

* ``http://myexample.com``
"
``example.com/articles/``, "

Match any URL whose domain is ``example.com`` or ``www.example.com`` and path starts by ``/articles/``.

|

**Match:**

* ``http://www.example.com/articles/article1``
* ``https://example.com/articles/another_article?id=23``

**Don't match:**

* ``http://example.com/articles``
* ``http://shop.example.com/articles/article1``

"