换个工具试试看?

偶这里TOAD8.5是支持的,这是toad中的帮助说明:

Regular Expression Searches

On the Find or Replace dialog boxes, you can check the Regular Expressions check box to use regular expression syntax for your search. Regular expressions can be used to specify text by its characteristics rather than by the exact characters.

Basic Regular Expression Searches

Some of the basic uses for a regular expression search include: finding tabs and replacing them with spaces. The following are some basic regular expressions:

Expression

Meaning

\r

Carriage return

\n

New line

\f

Form feed

\t

Tab character

\b

Backspace

\s

Whitespace character

\S

Space

Advanced Regular Expression Searches

You can also use regular expressions for more advanced searches. For example, to find all identifiers in a PL/SQL program, it is known that the identifier can only start with certain characters and thereafter can contain only certain other characters. Regular expressions allow the specifications of such items through the use of a syntax borrowed from tools such as GREP, LEX and YACC.

The syntax definition uses EBNF notation. EBNF (Extended Backaus-Naur Form) is a style of specification used for formal syntax descriptions. Within the syntax description the following meta-characters are used:

meta-character

meaning

a ::= b

Construct a is defined by construct b

[a]

Indicates that construct a is optional

(abc)

Indicates that constructs a, b and c are taken as a single construct

a|b

Indicates either construct a or construct b

'abc'

The literal characters 'a' followed by 'b' followed by 'c'

Single syntax construct a defined in the specification

REGULAR EXPRESSION SYNTAX

The formal description of the syntax supported is given as:

::= [ '^' ] [ '$' ]

::= [ '|' ]

::= [ ]

::= [ ]

::= |

|

|

'.' |

( '(' ')' )

::= '"' '"'

::= [ ]

::= '[' [ '^' ] ']'

::= [ ]

::= [ '-' ]

::= '*' |

'+' |

'?' |

::= |

::= '\'

::= 'x' |

'0' |

'n' |

't' |

'r' |

'b' |

'f' |

's' |

::= [ ]

::= '0' | '1' | '2' | '3' | '4' | '5' | '6' |'7' | '8' | '9' |

'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F'

::= [ ] [ ]

::= '0' | '1' | '2' | '3' | '4' | '5' | '6' |'7'

::= Any visible character (See note 1)

NOTES

specifications of grammar characters, such as '*', '?' and so on, should be escaped to prevent misinterpretation.

specifications must result in an 8 bit value. At most 3 s will be used to determine the , any more will be parsed as s after the . If the results in a character value > 255 (such as \0377) then an error will be reported.

will only accept at most 2 hex digits, any following s will not be used in the escape value and will be interpreted as s. To remove ambiguity, always use a 2 digit hex code such as \x0F and so on.

The s are interpreted as follows:

'*'

Zero or more of

'+'

One or more of

'?'

Zero or one of (i.e. optional)

A caret (^) at the beginning of a regular expression matches the start of a line. A dollar ($) at the end of an expression matches the end of the line. Both do NOT include the line start/end markers in the recognized text.

The letters can be upper or lower case and are interpreted as follows:

\r

Carriage return (ASCII code 10)

\n

New line (ASCII code 13)

\f

Form feed (ASCII code 12)

\t

Tab character (ASCII code 9)

\b

Backspace (ASCII code 8)

\s

Space (ASCII code 32)

REPLACEMENT TEXT SYNTAX

Replacement text is defined by:

::=

::= [ ]

::= |

|

::= '%'

::= [ ]

::= '0' | '1' | '2' | '3' | '4' | '5' | '6' |'7' | '8' | '9'

NOTES

and are as in the regular expression syntax.

The should evaluate to a number in the range 1..10. The upper value may be changed by purchasers of the source code.

EXAMPLES

Locate Internet references

("http://"|"mailto:"|"ftp://&quot

[^ \n\r\"\

Would allow the detection of Internet references that start with 'http://', 'mailto:' or 'ftp://'. The will be assigned based upon the syntax element and devolve to:

%1.....("http://"|"mailto:"|"ftp://&quot

%2.....[^ \n\r\"\

In English, the expression reads:

"Find all occurrences of text that start with 'http://', 'mailto:' or 'ftp://' and are followed by at least one character that is not one of a space (\s), a newline(\n), a carriage return(\r), a quote(\&quot

, a bracket (\&lt

, or a slash (\\)"

Locate all compiler directives in an Object Pascal program

"{$"[a-zA-Z_]+[\s\t\r\n]*[^\}]*"}"

Would create fields as below:

%1....."{$"

%2.....[a-zA-Z_]+

%3.....[\s\t\r\n]*

%4.....[^\}]*

%5....."}"

In English, the expression reads:

"Find all occurrences of text that start with a curly brace and a dollar ("{$&quot

and are followed by at least one letter or underscore ([a-zA-Z_]+) optionally followed by some whitespace ([\s\t\r\n]*)optionally followed by any number of anything except a close curly brace ([^\}]*) and terminated by a close curly brace "}".

oracle查找和替换正则,PL/SQL Developer的查找/替换功能中怎样使用正则表达式?相关推荐

  1. 免安装Oracle客户端就能使用pl/sql developer

    所幸发现了一个Windows下免安装Oracle客户端就能使用pl/sql developer轻便的方法,分享:1, 从Technical Resources | Oracle ... htdocs/ ...

  2. 在Docker中搭建Oracle数据库,并使用PL/SQL Developer链接

    原文地址::https://blog.csdn.net/qq_17518433/article/details/72835844?utm_medium=distribute.pc_relevant_t ...

  3. 集成开发环境PL/SQL Developer v13.0新功能(二)——PL / SQL美化功能增强

    Allround Automations是一家位于荷兰的私人控股公司.该公司成立于1989年,在Oracle开发工具方面是全球领先的服务提供商.其中,产品PL/SQL Developer是一个集成开发 ...

  4. oracle 前导列_通过 PL/SQL Developer (Oracle)-数据库(26)

    本篇文章介绍了跟SQL语句性能提升有关的执行计划,工作时间长了,或者说高手的进阶途径之一,就是如何能够在数据量很大的情况下,数据库的查询效率还能保持良好的性能. 感兴趣的朋友,可以收藏这篇文章哦,未来 ...

  5. PL/SQL Developer连接本地Oracle 11g 64位数据库和快捷键设置

    1.登录PL/SQL Developer 这里省略Oracle数据库和PL/SQL Developer的安装步骤,注意在安装PL/SQL Developer软件时,不要安装在Program Files ...

  6. PL/SQL Developer连接本地Oracle 11g 64位数据库

    1.登录PL/SQL Developer 这里省略Oracle数据库和PL/SQL Developer的安装步骤,注意在安装PL/SQL Developer软件时,不要安装在Program Files ...

  7. Windows 7 下安装 Oracle 数据库和 PL/SQL Developer

    win7下无论是32bits还是64bits,建议只安装oracle 11g 32bits,然后直接安装pl/sql developer,不需要额外的配置,就可以通过pl/sql developer来 ...

  8. 通过PL/SQL developer工具访问远程的Oracle数据库_访问数据库_连接数据库_登录数据库

    文章目录 工具简介 电脑没有安装 Oracle 数据库 电脑安装了 Oracle 数据库 工具简介 PL/SQL Developer 是 Oracle 数据库开发工具,PL/SQL Developer ...

  9. PL/SQL Developer 和 instantclient客户端快速安装配置(图文)

            适用场景:本地没有安装oracle服务器软件,只是想通过客户端软件连接到oracle服务器. 一: PL/SQL Developer 安装 下载安装文件安装,我这里的版本号是PLSQL ...

最新文章

  1. python生成时间戳_python生成13位或16位时间戳以及反向解析时间戳的实例
  2. html ie浏览器视频无法播放视频,HTML5视频以Chrome格式播放,但不播放IE9
  3. LVS server 关键点
  4. 编解码标准H264 与 AVS 变换矩阵比较
  5. java 布局实例,HarmonyOS Java UI之StackLayout布局示例
  6. Hibernate框架入门
  7. 如何使用代码获取电脑内存_代码实战 | 如何在 Android 开发中使用协程
  8. Xamarin教程一:创建Android项目(VS2019 C#写安卓)
  9. zip 命令实现批量文件压缩
  10. 搭建简单windows版NAS
  11. 日本华人IT派遣那点事儿(2)
  12. ZIP压缩算法详细分析及解压实例解释
  13. 剑已配好,我们江湖见
  14. css3中var函数
  15. 2022第七届少儿模特明星盛典 小主持人江姿莹 T台风采展示
  16. 如何设置虚拟机为静态IP
  17. python真值是什么意思_Python 为什么能支持任意的真值判断?
  18. 孟德尔随机化,异质性Heterogeneity statistics
  19. notepad++的apdl编辑器风格配置
  20. JS基础并且和||或

热门文章

  1. Android为什么采用Binder机制
  2. 电解电容的ESR到底是多少呢?
  3. Outlook中Skype会议按钮丢失
  4. 在solaris上自动启动oracle
  5. 中通快递关键业务和复杂架构挑战下的 Kubernetes 集群服务暴露实践
  6. OA系统如何实现实时项目成本核算
  7. java 根据excel模板格式导出指定格式的excel
  8. 生活鸡汤---送给女人和男人的
  9. 用一些助记符表示指令的计算机语言是,2015年海南农村信用社考试营业柜员计算机练习题1...
  10. Python 和 Elasticsearch 构建简易搜索