首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > Oracle10g正则表达式
【标  题】:Oracle10g正则表达式
【关键字】:Oracle10g
【来  源】:http://www.cublog.cn/u/7121/showart.php?id=161961

Oracle10g正则表达式

Regular expressions in Oracle

With 10g, regular expressions are finally available in SQL. That is, they were already supported through the owa_pattern package.
The new operators and functions are regexp_like, regexp_instr, regexp_substr and regexp_replace
symbol Matches
. Any character except 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 classes

The 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 classes

For example, the following not only matches an a, but also ä.
[[=a=]]

Links

在线重定义表:【上一篇】
我的oracle9i学习笔记(3):【下一篇】
【相关文章】
  • Oracle10gR1 RAC install on windows 2003 by vmware
  • 在 linux 下卸载 oracle10g
  • Oracle10g 如何给scott用户解锁
  • 使用Oracle10g的Flashback Query进行数据闪回
  • oracle10G备份与恢复详解
  • linux下oracle10g的安装
  • redhat企业版3中安装oracle10gR2 (1)
  • RH AS4u2_x86_64安装Oracle10g
  • 如何在一台计算机上使Oracle9i和Oracle10g共存
  • Middlegen-Hibernate-r5使用之 oracle10g(Inber原创)
  • 【随机文章】
  • 澄清EMC Clariion盘阵Snapview之clone的几个问题
  • 告别贴
  • 磁盘阵列存储术语
  • 新一代的王者----Intel原装915G主板
  • 数据包如此流动?--揭开IP电话的奥秘
  • 【分享】【08-28】注册精品软件下载
  • 附加的字符串
  • 在网上看到一个博客道德准则样本,附录如下,以供资鉴
  • 我能算到的阶乘有多大(八)
  • oracle常用数据字典列表
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.