Team LiB
Previous Section Next Section

List of Tables

Chapter 1: Regular Expressions

Table 1-1: Basic Regex Delimiter Characters
Table 1-2: The Pattern hello
Table 1-3: Common and Boundary Characters
Table 1-4: The Pattern \w\d
Table 1-5: The Pattern \banna
Table 1-6: Quantifiers
Table 1-7: The Pattern An+a
Table 1-8: The Pattern A{2,7}
Table 1-9: The Pattern A|B
Table 1-10: The Pattern anna|marie
Table 1-11: Character Classes
Table 1-12: POSIX Character Classes
Table 1-13: The Pattern [0-5]
Table 1-14: The Pattern [^A]
Table 1-15: Groups
Table 1-16: The Pattern (\w+)_(\w+)@(\w+)\.org
Table 1-17: Back References
Table 1-18: The Pattern \b(\w+) \1\b
Table 1-19: The Pattern (\d-)?(\d{3}-)?\d{3}-\d{4}
Table 1-20: The Pattern \d{5}(-\d{4})?
Table 1-21: The Pattern \d{1,2}-\d{1,2}-\d{4}
Table 1-22: The Pattern (\p{Upper}(\p{Lower}+\s?)){2,3}
Table 1-23: The Pattern ^(\p{Upper}(\p{Lower}+\s?)){2,3}\w+ .*, \w+ \d{5}(-\d{4})?$
Table 1-24: The Pattern \b(\w+) \1\b
Table 1-25: The Pattern Java \d
Table 1-26: The Pattern .*\bJava \d(|$)

Chapter 3: Advanced Regex

Table 3-1: Greedy Qualifiers
Table 3-2: The Pattern (?=^255).
Table 3-3: The Pattern John (?!Smith)[A-Z]\\w+
Table 3-4: The Pattern (?<=http://)\S+

Chapter 4: Object-Oriented Regex

Table 4-1: The Pattern <((?i)TITLE>)(.*?)</(/1)

Chapter 5: Practical Examples

Table 5-1: Pulling a General Regex Pattern from 614-345-6789
Table 5-2: Pushing \d{3}-\d{3}-\d{4} to Accommodate Seven-Digit Numbers
Table 5-3: Removing References to - from \d{3}-\d{3}-\d{4} to Accommodate the Data Scrub
Table 5-4: Making the Zip Code Pattern More Lenient and Efficient
Table 5-5: Pulling a General Regex Pattern from 614-345-6789
Table 5-6: Pulling a General Regex Pattern from @45#78
Table 5-7: Pulling an EDI Regex out of @[^@]*#([^@][^#])*

Appendix A: Regular Expression Reference

Table A-1: Common Characters
Table A-2: Predefined Character Classes
Table A-3: Character Classes
Table A-4: POSIX Character Classes
Table A-5: Boundary Matchers
Table A-6: Greedy Quantifiers
Table A-7: Reluctant Quantifiers
Table A-8: Possessive Quantifiers
Table A-9: Logical Operators
Table A-10: Quotation
Table A-11: Noncapturing Group Constructs
Table A-12: Lookarounds
Table A-13: Less Common Characters
Table A-14: Unicode Blocks and Categories

Appendix C: Common Regex Patterns

Table C-1: IP Address ^(([0-1]?\d{1,2}\.)|(2[0-4]\d\.)|(25[0-5]\.)){3} (([0-1]?\d{1,2})|(2[0-4]\d)|(25[0-5]))$
Table C-2: Simple E-mail ^(\p{Alnum}+(\.|\_|\-)?)*\p{Alnum}@(\p{Alnum}+ (\.|\_|\-)?)*\p{Alpha}$
Table C-3: Digit Repeated Exactly n Times \d{n}, Where n Is the Number of Digits Needed
Table C-4: Characters Repeated Exactly n Times \w{n}, Where n Is the Number of Characters Needed
Table C-5: Characters Repeated n to m Times \w{n.m}, Where n Is the Number of Characters Needed
Table C-6: Credit Cards: Visa, MasterCard, American Express, and Discover ^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$
Table C-7: Real Number ^[+-]?\d+(\.\d+)?$

Team LiB
Previous Section Next Section