Oracle10g Regular Expression

Source: Internet
Author: User
Tags character classes control characters printable characters alphanumeric characters
ArticleDirectory
    • Equivalence classes
Regular Expressions in oraclewith 10g, regular expressions are finally available in SQL. That is, they were already supported through the specified package. The new operators and functions are regexp_like
symbol matches
. Any character t newline
^ Start of a line
$ end of a line
* 0, 1, or more of the preceding element. The preceding element can be grouped with ()
{n} EXACTLY n repetitions of the preceding element. The preceding element can be grouped with ()
{n ,} matches N or more repetitions of the preceding element. The preceding element can be grouped with ()
{m, n} matches between M and N repetitions of the preceding element. The preceding element can be grouped with ()
[ABC] Character List, matches A, B or C.
[G-l] G, H, I, J, K, or l
| groups alternatives
Character classesthe following character classes are suppored:

    • [[: Alnum:]
      Alphanumeric characters
    • [[: Alpha:]
      Alphabetic Characters
    • [[: Blank:]
      Blank space characters
    • [[: Cntrl:]
      Control characters
    • [[: Digit:]
      0 through 9, or[0-9]
    • [[: Graph:]
      [[: Punct:] + [[: Upper:] + [[: lower:] + [[: digit:]
    • [[: Lower:]
      Lowercase alphabetic characters
    • [[: Print:]
      Printable characters
    • [[: Punct:]
      Punctuation characters
    • [[: Space:]
      Non-printing space characters
    • [[: Upper:]
      Uppercase Alphabetic Characters
    • [[: Xdigit:]
      Hexadecimal characters
Character classes can be Negated : [^ [: Char-class:] . Equivalence classesfor example, the following not only matches A , But also Ä .
 
[[= A =]
Links

Http://www.adp-gmbh.ch/blog/2005/december/22.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.