NAME
Regexp::Pattern::License - Regular expressions for legal licenses
VERSION
Version v3.1.0
DESCRIPTION
Regexp::Pattern::License provides a hash of regular expression patterns related to legal software licenses.
Regexp::Pattern is a convention for organizing reusable regex patterns.
PATTERNS
Single licenses
Patterns each covering a single license.
Each of these patterns has exactly one of these tags: type:singleversion:* type:unversioned type:versioned:decimal .
adobe_2006
adobe_glyph
afl
agpl
aladdin
apache
apafml
artistic
artistic_2
bdwgc
bdwgc_matlab
beerware
bsd_2_clause
bsd_3_clause
bsd_4_clause
cc_by
cc_by_nc
cc_by_nc_nd
cc_by_nc_sa
cc_by_nd
cc_by_sa
cc_cc0
cc_sp
cddl
cecill
cecill_1
cecill_1_1
cecill_2
cecill_2_1
cecill_b
cecill_c
cube
curl
dsdp
epl
eurosym
fsfap
fsful
fsfullr
ftl
gfdl
gfdl_niv
gpl
isc
isc_minidiscl
icu
lgpl
lgpl_bdwgc
llgpl
libpng
mit_advertising
mit_cmu
mit_cmu_warranty
mit_enna
mit_feh
mit_new
mit_new_materials
mit_old
mit_oldstyle
mit_oldstyle_disclaimer
mit_oldstyle_permission
mpl
ms_pl
ms_rl
ntp
ntp_disclaimer
ofl
openssl
postgresql
public_domain
python
qpl
rpsl
sgi_b
unicode_strict
unicode_tou
wtfpl
zlib
zlib_acknowledgement
Licensing traits
Patterns each covering a single trait occuring in licenses.
Each of these patterns has the tag type:trait .
clause_retention
clause_reproduction
clause_advertising
clause_advertising_always
clause_non_endorsement
fsf_unlimited
fsf_unlimited_retention
version_later
version_later_paragraph
version_later_postfix
version_number
version_prefix
License combinations
Patterns each covering a combination of multiple licenses.
Each of these patterns has the tag type:combo .
perl
License groups
Patterns each covering either of multiple licenses.
Each of these patterns has the tag type:group .
bsd
gnu
mit
STRUCTURE
The regexp patterns follows the DefHash specification, and more specifically the structure of Regexp::Pattern.
TAGS
Pattern defhashes optionally includes tags, which may help in selecting multiple related patterns.
Tags are hierarchical, with :
as separator, and may be extended without notice. Therefore take care to permit sub-parts when tag-matching, e.g. using a regex like /\Asome:tag(?:\z|:)/
.
family:bsd
family:cc
family:gpl
family:mit
family:zlib
Pattern covers a license part of a family of licenses.
type:combo
Pattern covers a combination of multiple licenses.
type:group
Pattern covers either of multiple licenses.
type:singleversion:*
Pattern covers a specific version of a license.
Last part of tag is the key of the corresponding non-version-specific pattern.
type:trait
Pattern covers a single trait occuring in licenses.
type:unversioned
Pattern covers a license without versioning scheme.
type:versioned:decimal
Pattern covers a license using decimal number versioning scheme.
DEPRECATED TAGS
Tags not documented in this POD, specifically non-hierarchical tags, are deprecated and will be dropped in a future release.
AUTHOR
Jonas Smedegaard <dr@jones.dk>
COPYRIGHT AND LICENSE
Copyright © 2016-2017 Jonas Smedegaard
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.