0% found this document useful (0 votes)
20 views

Regular Expression Pocket Reference Regular Expressions for Perl Ruby PHP Python C Java and NET 2nd Edition Tony Stubblebine - The latest ebook is available for instant download now

The document promotes various eBooks available for download at ebookname.com, including titles such as 'Regular Expression Pocket Reference' and 'Regular Expressions Cookbook'. It provides direct links to these eBooks and highlights the instant digital formats available for download. Additionally, it includes information about the content and structure of the 'Regular Expression Pocket Reference' by Tony Stubblebine, which covers regex syntax and usage across multiple programming languages.

Uploaded by

ersiaaabde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Regular Expression Pocket Reference Regular Expressions for Perl Ruby PHP Python C Java and NET 2nd Edition Tony Stubblebine - The latest ebook is available for instant download now

The document promotes various eBooks available for download at ebookname.com, including titles such as 'Regular Expression Pocket Reference' and 'Regular Expressions Cookbook'. It provides direct links to these eBooks and highlights the instant digital formats available for download. Additionally, it includes information about the content and structure of the 'Regular Expression Pocket Reference' by Tony Stubblebine, which covers regex syntax and usage across multiple programming languages.

Uploaded by

ersiaaabde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Endless Ebook, One Click Away – Start Downloading at ebookname.

com

Regular Expression Pocket Reference Regular


Expressions for Perl Ruby PHP Python C Java and
NET 2nd Edition Tony Stubblebine

https://ebookname.com/product/regular-expression-pocket-
reference-regular-expressions-for-perl-ruby-php-python-c-
java-and-net-2nd-edition-tony-stubblebine/

OR CLICK HERE

DOWLOAD EBOOK

Browse and Get More Ebook Downloads Instantly at https://ebookname.com


Click here to visit ebookname.com and download ebook now
Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Regular expressions cookbook 1st ed Edition Jan


Goyvaerts

https://ebookname.com/product/regular-expressions-cookbook-1st-
ed-edition-jan-goyvaerts/

XML Processing with Perl Python and PHP 1st Edition


Martin C. Brown

https://ebookname.com/product/xml-processing-with-perl-python-
and-php-1st-edition-martin-c-brown/

Ruby Pocket Reference 2nd Edition Instant Help for Ruby


Programmers Michael Fitzgerald

https://ebookname.com/product/ruby-pocket-reference-2nd-edition-
instant-help-for-ruby-programmers-michael-fitzgerald/

Soil Physics with Hydrus Modeling and Applications


David Radcliffe

https://ebookname.com/product/soil-physics-with-hydrus-modeling-
and-applications-david-radcliffe/
Rescued from the Reich How One of Hitler s Soldiers
Saved the Lubavitcher Rebbe First Edition Bryan Mark
Rigg

https://ebookname.com/product/rescued-from-the-reich-how-one-of-
hitler-s-soldiers-saved-the-lubavitcher-rebbe-first-edition-
bryan-mark-rigg/

Schaum s Outline of French Grammar 5ed Schaum s Outline


Series 5th Edition Mary Crocker

https://ebookname.com/product/schaum-s-outline-of-french-
grammar-5ed-schaum-s-outline-series-5th-edition-mary-crocker/

Global Fragments Dis Orientation in the New World Order


Asnel Papers 10 Cross Cultures 90 Cross Cultures
Readings in the Post Colonial Literatures in English
Bartels
https://ebookname.com/product/global-fragments-dis-orientation-
in-the-new-world-order-asnel-papers-10-cross-cultures-90-cross-
cultures-readings-in-the-post-colonial-literatures-in-english-
bartels/

Urban Aquaculture Cabi Publishing First Edition Barry


Costa-Pierce

https://ebookname.com/product/urban-aquaculture-cabi-publishing-
first-edition-barry-costa-pierce/

Complex behavior of switching power converters 1st


Edition Chi Kong Tse

https://ebookname.com/product/complex-behavior-of-switching-
power-converters-1st-edition-chi-kong-tse/
Nuclear Proliferation and International Security
Routledge Global Security Studies Lodgaard Maerli

https://ebookname.com/product/nuclear-proliferation-and-
international-security-routledge-global-security-studies-
lodgaard-maerli/
Regular Expression
Pocket Reference
SECOND EDITION

Regular Expression
Pocket Reference

Tony Stubblebine

Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo


Regular Expression Pocket Reference, Second Edition
by Tony Stubblebine

Copyright © 2007, 2003 Tony Stubblebine. All rights reserved. Portions of


this book are based on Mastering Regular Expressions, by Jeffrey E. F. Friedl,
Copyright © 2006, 2002, 1997 O’Reilly Media, Inc.
Printed in Canada.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North,
Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales
promotional use. Online editions are also available for most titles
(safari.oreilly.com). For more information, contact our corporate/
institutional sales department: (800) 998-9938 or [email protected].

Editor: Andy Oram Indexer: Johnna VanHoose Dinse


Production Editor: Sumita Mukherji Cover Designer: Karen Montgomery
Copyeditor: Genevieve d’Entremont Interior Designer: David Futato

Printing History:
August 2003: First Edition.
July 2007: Second Edition.

Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are
registered trademarks of O’Reilly Media, Inc. The Pocket Reference series
designations, Regular Expression Pocket Reference, the image of owls, and
related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish
their products are claimed as trademarks. Where those designations appear
in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the
designations have been printed in caps or initial caps.
Java™ is a trademark of Sun Microsystems, Inc. Microsoft Internet Explorer
and .NET are registered trademarks of Microsoft Corporation. Spider-Man
is a registered trademark of Marvel Enterprises, Inc.
While every precaution has been taken in the preparation of this book, the
publisher and author assume no responsibility for errors or omissions, or for
damages resulting from the use of the information contained herein.

ISBN-10: 0-596-51427-1
ISBN-13: 978-0-596-51427-3
[T]
Contents

About This Book 1


Introduction to Regexes and Pattern Matching 3
Regex Metacharacters, Modes, and Constructs 5
Unicode Support 13
Regular Expression Cookbook 13
Recipes 14
Perl 5.8 16
Supported Metacharacters 17
Regular Expression Operators 21
Unicode Support 23
Examples 24
Other Resources 25
Java (java.util.regex) 26
Supported Metacharacters 26
Regular Expression Classes and Interfaces 30
Unicode Support 35
Examples 36
Other Resources 38

v
.NET and C# 38
Supported Metacharacters 38
Regular Expression Classes and Interfaces 42
Unicode Support 47
Examples 47
Other Resources 49
PHP 50
Supported Metacharacters 50
Pattern-Matching Functions 54
Examples 56
Other Resources 58
Python 58
Supported Metacharacters 58
re Module Objects and Functions 61
Unicode Support 64
Examples 65
Other Resources 66
RUBY 66
Supported Metacharacters 67
Object-Oriented Interface 70
Unicode Support 75
Examples 75
JavaScript 77
Supported Metacharacters 77
Pattern-Matching Methods and Objects 79
Examples 82
Other Resources 83

vi | Contents
PCRE 83
Supported Metacharacters 84
PCRE API 89
Unicode Support 92
Examples 92
Other Resources 96
Apache Web Server 96
Supported Metacharacters 96
RewriteRule 99
Matching Directives 102
Examples 102
vi Editor 103
Supported Metacharacters 103
Pattern Matching 106
Examples 108
Other Resources 108
Shell Tools 109
Supported Metacharacters 109
Other Resources 114
Index 115

Contents | vii
Regular Expression Pocket
Reference

Regular expressions are a language used for parsing and


manipulating text. They are often used to perform complex
search-and-replace operations, and to validate that text data
is well-formed.
Today, regular expressions are included in most program-
ming languages, as well as in many scripting languages,
editors, applications, databases, and command-line tools.
This book aims to give quick access to the syntax and
pattern-matching operations of the most popular of these
languages so that you can apply your regular-expression
knowledge in any environment.
The second edition of this book adds sections on Ruby and
Apache web server, common regular expressions, and also
updates existing languages.

About This Book


This book starts with a general introduction to regular
expressions. The first section describes and defines the
constructs used in regular expressions, and establishes the
common principles of pattern matching. The remaining sec-
tions of the book are devoted to the syntax, features, and
usage of regular expressions in various implementations.
The implementations covered in this book are Perl, Java™,
.NET and C#, Ruby, Python, PCRE, PHP, Apache web
server, vi editor, JavaScript, and shell tools.

1
Conventions Used in This Book
The following typographical conventions are used in this
book:
Italic
Used for emphasis, new terms, program names, and
URLs
Constant width
Used for options, values, code fragments, and any text
that should be typed literally
Constant width italic
Used for text that should be replaced with user-supplied
values
Constant width bold
Used in examples for commands or other text that
should be typed literally by the user

Acknowledgments
Jeffrey E. F. Friedl’s Mastering Regular Expressions (O’Reilly)
is the definitive work on regular expressions. While writing, I
relied heavily on his book and his advice. As a convenience,
this book provides page references to Mastering Regular
Expressions, Third Edition (MRE) for expanded discussion of
regular expression syntax and concepts.
Nat Torkington and Linda Mui were excellent editors who
guided me through what turned out to be a tricky first edi-
tion. This edition was aided by the excellent editorial skills of
Andy Oram. Sarah Burcham deserves special thanks for
giving me the opportunity to write this book, and for her
contributions to the “Shell Tools” section. More thanks for
the input and technical reviews from Jeffrey Friedl, Philip
Hazel, Steve Friedl, Ola Bini, Ian Darwin, Zak Greant, Ron
Hitchens, A.M. Kuchling, Tim Allwine, Schuyler Erle, David
Lents, Rabble, Rich Bowan, Eric Eisenhart, and Brad Merrill.

2 | Regular Expression Pocket Reference


Introduction to Regexes and Pattern
Matching
A regular expression is a string containing a combination of
normal characters and special metacharacters or metase-
quences. The normal characters match themselves.
Metacharacters and metasequences are characters or sequences
of characters that represent ideas such as quantity, locations,
or types of characters. The list in “Regex Metacharacters,
Modes, and Constructs” shows the most common metachar-
acters and metasequences in the regular expression world.
Later sections list the availability of and syntax for sup-
ported metacharacters for particular implementations of
regular expressions.
Pattern matching consists of finding a section of text that is
described (matched) by a regular expression. The underlying
code that searches the text is the regular expression engine.
You can predict the results of most matches by keeping two
rules in mind:
1. The earliest (leftmost) match wins
Regular expressions are applied to the input starting at
the first character and proceeding toward the last. As
soon as the regular expression engine finds a match, it
returns. (See MRE 148–149.)
2. Standard quantifiers are greedy
Quantifiers specify how many times something can be
repeated. The standard quantifiers attempt to match as
many times as possible. They settle for less than the max-
imum only if this is necessary for the success of the
match. The process of giving up characters and trying
less-greedy matches is called backtracking. (See MRE
151–153.)
Regular expression engines have differences based on their
type. There are two classes of engines: Deterministic Finite
Automaton (DFA) and Nondeterministic Finite Automaton

Introduction to Regexes and Pattern Matching | 3


(NFA). DFAs are faster, but lack many of the features of an
NFA, such as capturing, lookaround, and nongreedy quanti-
fiers. In the NFA world, there are two types: traditional and
POSIX.
DFA engines
DFAs compare each character of the input string to the
regular expression, keeping track of all matches in
progress. Since each character is examined at most once,
the DFA engine is the fastest. One additional rule to
remember with DFAs is that the alternation metase-
quence is greedy. When more than one option in an
alternation (foo|foobar) matches, the longest one is
selected. So, rule No. 1 can be amended to read “the
longest leftmost match wins.” (See MRE 155–156.)
Traditional NFA engines
Traditional NFA engines compare each element of the
regex to the input string, keeping track of positions
where it chose between two options in the regex. If an
option fails, the engine backtracks to the most recently
saved position. For standard quantifiers, the engine
chooses the greedy option of matching more text; how-
ever, if that option leads to the failure of the match, the
engine returns to a saved position and tries a less greedy
path. The traditional NFA engine uses ordered
alternation, where each option in the alternation is tried
sequentially. A longer match may be ignored if an earlier
option leads to a successful match. So, here rule #1 can
be amended to read “the first leftmost match after greedy
quantifiers have had their fill wins.” (See MRE 153–154.)
POSIX NFA engines
POSIX NFA Engines work similarly to Traditional NFAs
with one exception: a POSIX engine always picks the
longest of the leftmost matches. For example, the alter-
nation cat|category would match the full word
“category” whenever possible, even if the first alternative
(“cat”) matched and appeared earlier in the alternation.
(See MRE 153–154.)

4 | Regular Expression Pocket Reference


Regex Metacharacters, Modes, and Constructs
The metacharacters and metasequences shown here repre-
sent most available types of regular expression constructs
and their most common syntax. However, syntax and avail-
ability vary by implementation.

Character representations
Many implementations provide shortcuts to represent char-
acters that may be difficult to input. (See MRE 115–118.)
Character shorthands
Most implementations have specific shorthands for the
alert, backspace, escape character, form feed, newline,
carriage return, horizontal tab, and vertical tab
characters. For example, \n is often a shorthand for the
newline character, which is usually LF (012 octal), but
can sometimes be CR (015 octal), depending on the oper-
ating system. Confusingly, many implementations use \b
to mean both backspace and word boundary (position
between a “word” character and a nonword character).
For these implementations, \b means backspace in a char-
acter class (a set of possible characters to match in the
string), and word boundary elsewhere.
Octal escape: \num
Represents a character corresponding to a two- or three-
digit octal number. For example, \015\012 matches an
ASCII CR/LF sequence.
Hex and Unicode escapes: \xnum, \x{num}, \unum, \Unum
Represent characters corresponding to hexadecimal num-
bers. Four-digit and larger hex numbers can represent the
range of Unicode characters. For example, \x0D\x0A
matches an ASCII CR/LF sequence.
Control characters: \cchar
Corresponds to ASCII control characters encoded with
values less than 32. To be safe, always use an uppercase
char—some implementations do not handle lowercase

Introduction to Regexes and Pattern Matching | 5


representations. For example, \cH matches Control-H, an
ASCII backspace character.

Character classes and class-like constructs


Character classes are used to specify a set of characters. A char-
acter class matches a single character in the input string that is
within the defined set of characters. (See MRE 118–128.)
Normal classes: [...] and [^...]
Character classes, [...], and negated character classes,
[^...], allow you to list the characters that you do or do
not want to match. A character class always matches one
character. The - (dash) indicates a range of characters.
For example, [a-z] matches any lowercase ASCII letter.
To include the dash in the list of characters, either list it
first, or escape it.
Almost any character: dot (.)
Usually matches any character except a newline. How-
ever, the match mode usually can be changed so that dot
also matches newlines. Inside a character class, dot
matches just a dot.
Class shorthands: \w, \d, \s, \W, \D, \S
Commonly provided shorthands for word character,
digit, and space character classes. A word character is
often all ASCII alphanumeric characters plus the under-
score. However, the list of alphanumerics can include
additional locale or Unicode alphanumerics, depending
on the implementation. A lowercase shorthand (e.g., \s)
matches a character from the class; uppercase (e.g., \S)
matches a character not from the class. For example, \d
matches a single digit character, and is usually equiva-
lent to [0-9].
POSIX character class: [:alnum:]
POSIX defines several character classes that can be used
only within regular expression character classes (see
Table 1). Take, for example, [:lower:]. When written as
[[:lower:]], it is equivalent to [a-z] in the ASCII locale.

6 | Regular Expression Pocket Reference


Discovering Diverse Content Through
Random Scribd Documents
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning
of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the Project
Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for


the “Right of Replacement or Refund” described in paragraph 1.F.3,
the Project Gutenberg Literary Archive Foundation, the owner of the
Project Gutenberg™ trademark, and any other party distributing a
Project Gutenberg™ electronic work under this agreement, disclaim
all liability to you for damages, costs and expenses, including legal
fees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR
NEGLIGENCE, STRICT LIABILITY, BREACH OF WARRANTY OR
BREACH OF CONTRACT EXCEPT THOSE PROVIDED IN PARAGRAPH
1.F.3. YOU AGREE THAT THE FOUNDATION, THE TRADEMARK
OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL
NOT BE LIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE OR INCIDENTAL DAMAGES EVEN IF
YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving
it, you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or
entity that provided you with the defective work may elect to provide
a replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation,


the trademark owner, any agent or employee of the Foundation,
anyone providing copies of Project Gutenberg™ electronic works in
accordance with this agreement, and any volunteers associated with
the production, promotion and distribution of Project Gutenberg™
electronic works, harmless from all liability, costs and expenses,
including legal fees, that arise directly or indirectly from any of the
following which you do or cause to occur: (a) distribution of this or
any Project Gutenberg™ work, (b) alteration, modification, or
additions or deletions to any Project Gutenberg™ work, and (c) any
Defect you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many
small donations ($1 to $5,000) are particularly important to
maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.
Project Gutenberg™ eBooks are often created from several printed
editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookname.com

You might also like