O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Oracle Regular Expressions Pocket Reference

Book Description

Support for regular expressions in SQL and PL/SQL is one of the most exciting features of Oracle Database 10G. Oracle has long supported the ANSI-standard LIKE predicate for rudimentary pattern matching, but regular expressions take pattern matching to a new level. They provide a powerful way to select data that matches a pattern, as well as to manipulate, rearrange, and change that data. This concise pocket guide is part tutorial and part quick-reference. It's suitable for those who have never used regular expressions before, as well as those who have experience with Perl and other languages supporting regular expressions. The book describes Oracle Database 10G's support for regular expressions, including globalization support and differences between Perl's syntax and the POSIX syntax supported by Oracle 10G. It also provides a comprehensive reference, including examples, to all supported regular expression operators, functions, and error messages. O'Reilly's Pocket References have become a favorite among developers and database administrators everywhere. By providing a wealth of important details in a concise, well-organized format, these handy books deliver just what you need to complete the task at hand. Whether you're using regular expressions for the first time or applying your skills from other languages to the latest version of Oracle, the Oracle Regular Expressions Pocket Reference is the book to have close by.

Table of Contents

  1. Oracle Regular Expressions Pocket Reference
    1. SPECIAL OFFER: Upgrade this ebook with O’Reilly
    2. A Note Regarding Supplemental Files
    3. 1. Oracle Regular Expressions Pocket Reference
      1. 1.1. Introduction
      2. 1.2. Organization of This Book
      3. 1.3. Conventions
      4. 1.4. Acknowledgments
      5. 1.5. Example Data
      6. 1.6. Tutorial
        1. 1.6.1. Patterns
        2. 1.6.2. Regular Expressions
        3. 1.6.3. Bracket Expressions
        4. 1.6.4. The Escape Character
        5. 1.6.5. Subexpressions
        6. 1.6.6. Alternation
        7. 1.6.7. Greediness
        8. 1.6.8. Backreferences
        9. 1.6.9. Fuzziness
      7. 1.7. Oracle's Regular Expression Support
        1. 1.7.1. Regular Expression Functions
        2. 1.7.2. Regular Expression Locale Support
        3. 1.7.3. Regular Expression Matching Options
        4. 1.7.4. Standards Compliance
        5. 1.7.5. Differences Between Perl and Oracle
          1. String literal issues
          2. NULL versus empty strings
          3. Perl-specific syntax
          4. Syntax Perl does not support
          5. Negating character classes
          6. Lazy quantifiers (non-greediness)
          7. Experimental features
          8. Backreferences
          9. Backslash differences
      8. 1.8. Regular Expression Quick Reference
        1. \ (Backslash)
        2. \1 through \9 (Backslash)
        3. . (Period)
        4. ^ (Caret)
        5. $ (Dollar Sign)
        6. [ ] (Square Brackets)
        7. [. .] (Collation Element)
        8. [: :] (Character Class)
        9. [= =] (Equivalence Class)
        10. * (Asterisk)
        11. + (Plus Sign)
        12. ? (Question Mark)
        13. { } (Curly Braces)
        14. Vertical Bar (|)
        15. ( ) (Parentheses)
      9. 1.9. Oracle Regular Expression Functions
        1. REGEXP_INSTR
        2. REGEXP_LIKE
        4. REGEXP_SUBSTR
      10. 1.10. Oracle Regular Expression Error Messages
        1. ORA-01760: illegal argument for function
        2. ORA-12722: regular expression internal error
        3. ORA-12725: unmatched parentheses in regular expression
        4. ORA-12726: unmatched bracket in regular expression
        5. ORA-12727: invalid back reference in regular expression
        6. ORA-12728: invalid range in regular expression
        7. ORA-12729: invalid character class in regular expression:
        8. ORA-12730: invalid equivalence class in regular expression
        9. ORA-12731: invalid collation class in regular expression
        10. ORA-12732: invalid interval value in regular expression
    4. About the Authors
    5. SPECIAL OFFER: Upgrade this ebook with O’Reilly