Skip to content
0.2.0-dev Download ZIP
104 lines ·3.9 KB Raw
1PCRE2 Licence
2=============
3
4| SPDX-License-Identifier: | BSD-3-Clause WITH PCRE2-exception |
5|---------|-------|
6
7PCRE2 is a library of functions to support regular expressions whose syntax
8and semantics are as close as possible to those of the Perl 5 language.
9
10Releases 10.00 and above of PCRE2 are distributed under the terms of the "BSD"
11licence, as specified below, with one exemption for certain binary
12redistributions. The documentation for PCRE2, supplied in the "doc" directory,
13is distributed under the same terms as the software itself. The data in the
14testdata directory is not copyrighted and is in the public domain.
15
16The basic library functions are written in C and are freestanding. Also
17included in the distribution is a just-in-time compiler that can be used to
18optimize pattern matching. This is an optional feature that can be omitted when
19the library is built. The just-in-time compiler is separately licensed under the
20"2-clause BSD" licence.
21
22
23COPYRIGHT
24---------
25
26### The basic library functions
27
28 Written by: Philip Hazel
29 Email local part: Philip.Hazel
30 Email domain: gmail.com
31
32 Retired from University of Cambridge Computing Service,
33 Cambridge, England.
34
35 Copyright (c) 1997-2007 University of Cambridge
36 Copyright (c) 2007-2024 Philip Hazel
37 All rights reserved.
38
39### PCRE2 Just-In-Time compilation support
40
41 Written by: Zoltan Herczeg
42 Email local part: hzmester
43 Email domain: freemail.hu
44
45 Copyright (c) 2010-2024 Zoltan Herczeg
46 All rights reserved.
47
48### Stack-less Just-In-Time compiler
49
50 Written by: Zoltan Herczeg
51 Email local part: hzmester
52 Email domain: freemail.hu
53
54 Copyright (c) 2009-2024 Zoltan Herczeg
55 All rights reserved.
56
57The code in the `deps/sljit` directory has its own LICENSE file.
58
59### All other contributions
60
61Many other contributors have participated in the authorship of PCRE2. As PCRE2
62has never required a Contributor Licensing Agreement, or other copyright
63assignment agreement, all contributions have copyright retained by each
64original contributor or their employer.
65
66
67THE "BSD" LICENCE
68-----------------
69
70Redistribution and use in source and binary forms, with or without
71modification, are permitted provided that the following conditions are met:
72
73* Redistributions of source code must retain the above copyright notices,
74 this list of conditions and the following disclaimer.
75
76* Redistributions in binary form must reproduce the above copyright
77 notices, this list of conditions and the following disclaimer in the
78 documentation and/or other materials provided with the distribution.
79
80* Neither the name of the University of Cambridge nor the names of any
81 contributors may be used to endorse or promote products derived from this
82 software without specific prior written permission.
83
84THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
85AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
86IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
87ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
88LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
89CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
90SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
91INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
92CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
93ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
94POSSIBILITY OF SUCH DAMAGE.
95
96
97EXEMPTION FOR BINARY LIBRARY-LIKE PACKAGES
98------------------------------------------
99
100The second condition in the BSD licence (covering binary redistributions) does
101not apply all the way down a chain of software. If binary package A includes
102PCRE2, it must respect the condition, but if package B is software that
103includes package A, the condition is not imposed on package B unless it uses
104PCRE2 independently.