| www.delorie.com/gnu/docs/regex/regex.html | search |
![]() Buy the book! | |
| [Top] | [Contents] | [Index] | [ ? ] |
This manual documents how to program with the GNU regular expression library. This is edition 0.12a of the manual, 19 September 1992.
The first part of this master menu lists the major nodes in this Info document, including the index. The rest of the menu lists all the lower level nodes in the document.
-- The Detailed Node Listing ---
1. Overview 2. Regular Expression Syntax 3. Common Operators 4. GNU Operators 5. GNU Emacs Operators 6. What Gets Matched? 7. Programming with Regex A. GNU GENERAL PUBLIC LICENSE Copying and sharing Regex. Index General index.
Regular Expression Syntax
2.1 Syntax Bits 2.2 Predefined Syntaxes 2.3 Collating Elements vs. Characters 2.4 The Backslash Character
Common Operators
3.1 The Match-self Operator (ordinary character) Ordinary characters. 3.2 The Match-any-character Operator ( .). 3.3 The Concatenation Operator Juxtaposition. 3.4 Repetition Operators * + ? {} 3.5 The Alternation Operator ( |or\|)| 3.6 List Operators ( [...]and[^...])[...] [^...] 3.7 Grouping Operators ( (...)or\(...\))(...) 3.8 The Back-reference Operator (\digit) \digit 3.9 Anchoring Operators ^ $
Repetition Operators
3.4.1 The Match-zero-or-more Operator ( *)* 3.4.2 The Match-one-or-more Operator ( +or\+)+ 3.4.3 The Match-zero-or-one Operator ( ?or\?)? 3.4.4 Interval Operators ( {...}or\{...\}){}
List Operators ([...]and[^...])
3.6.1 Character Class Operators ( [:...:])[:class:] 3.6.2 The Range Operator ( -)start-end
Anchoring Operators
3.9.1 The Match-beginning-of-line Operator ( ^)^ 3.9.2 The Match-end-of-line Operator ( $)$
GNU Operators
4.1 Word Operators 4.2 Buffer Operators
Word Operators
Buffer Operators
4.2.1 The Match-beginning-of-buffer Operator ( \`)\` 4.2.2 The Match-end-of-buffer Operator ( \')\'
GNU Emacs Operators
5.1 Syntactic Class Operators
Syntactic Class Operators
5.1.1 Emacs Syntax Tables 5.1.2 The Match-syntactic-class Operator ( \sclass)\sCLASS 5.1.3 The Match-not-syntactic-class Operator ( \Sclass)\SCLASS
Programming with Regex
7.1 GNU Regex Functions 7.2 POSIX Regex Functions 7.3 BSD Regex Functions
GNU Regex Functions
7.1.1 GNU Pattern Buffers The re_pattern_buffer type. 7.1.2 GNU Regular Expression Compiling re_compile_pattern () 7.1.3 GNU Matching re_match () 7.1.4 GNU Searching re_search () 7.1.5 Matching and Searching with Split Data re_match_2 (), re_search_2 () 7.1.6 Searching with Fastmaps re_compile_fastmap () 7.1.7 GNU Translate Tables The `translate' field. 7.1.8 Using Registers The re_registers type and related fns. 7.1.9 Freeing GNU Pattern Buffers regfree ()
POSIX Regex Functions
7.2.1 POSIX Pattern Buffers The regex_t type. 7.2.2 POSIX Regular Expression Compiling regcomp () 7.2.3 POSIX Matching regexec () 7.2.4 Reporting Errors regerror () 7.2.5 Using Byte Offsets The regmatch_t type. 7.2.6 Freeing POSIX Pattern Buffers regfree ()
BSD Regex Functions
7.3.1 BSD Regular Expression Compiling re_comp () 7.3.2 BSD Searching re_exec ()
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |