`
qingyujingyu427
  • 浏览: 26999 次
社区版块
存档分类
最新评论

pspad regex replace search

 
阅读更多

Replace Examples: 

Date format change from dd.mm.yyyy to yyyy-mm-dd. This will turn the European date style 26.8.1994 or 26/8/1994 into 1994-8-26.  

Search: ([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})  

Replace: $3-$2-$1

 

Find Examples: 

(.)\1+         matches 'aaaa' and 'cc'.  

(.+)\1+        also match 'abab' and '123123'  

(['"]?)(\d+)\1 matches '"13" (in double quotes), or '4' (in single quotes) or 77 (without quotes) etc

 

Metacharacters - Subexpressions 

The bracketing construct ( ... ) may also be used to define r.e. subexpressions (after parsing, you can find subexpression positions, lengths and actual values in MatchPos, MatchLen and Match properties of TRegExpr, and substitute it in clip strings by TRegExpr.Substitute).  

Subexpressions are numbered based on the left to right order of their opening parenthesis. First subexpression has number '1' (whole r.e. match has number '0' - You can substitute it in TRegExpr.Substitute as '$0' or '$&').  

Examples: 

(foobar){8,10}        matches strings which contain 8, 9 or 10 instances of the 'foobar'  

foob([0-9]|a+)r       matches 'foob0r', 'foob1r' , 'foobar', 'foobaar', 'foobaar' etc.  

(abc(def)ghi(123))xzy    matches abcdefghi123xyz (the only match),  

Then backreferences:  

\1 = abcdefghi123,  

\2=def,  

\3=123,  

\0=abcdefghi123xyz (the whole match) 

分享到:
评论

相关推荐

    pspad

    pspad

    pspad_代码编写软件

    免费英文版,编辑功能强大、适合编程人员 免费英文版,编辑功能强大、适合编程人员 免费英文版,编辑功能强大、适合编程 pspad454pspad454pspad454pspad454pspad454

    pspad文本编辑器

    PSPad编辑器简介:PSPad编辑器,编程人员很好的助手...运行环境:Win2000,WinXP,Win2003,WinVista,Windows7 

    pspad文本编辑工具

    PSPad是我最喜欢的免费文本编辑工具,PSPad网站上这样描述的:PSPad editor is freeware programmer editor.(这句话看上去很怪,作者是捷克人,难道是英语不好?或者为了SEO?。我估计PSPad的名字是这样来的:...

    PSPad下载安装

    用于安装PSPad,PSPad功能非常强大,集成了许多非常实用的工具,是程序员的理想编辑器。

    PSPad编辑器

    PSPad编辑器,编程人员很好的助手

    PSPad editor V4.5.3(2250)

    PSPad editor V4.5.3(2250)

    PSPad editor 4.5.4(2315)

    PSPad editor 4.5.4(2315)

    PSPad

    如果你在不同的软件开发环境中工作,想要一种简单的工具。那么,PSpsd是你最佳的选择!

    PSPad安装版

    PSPad功能非常强大,UltraEdit、Editplus、EmEditor能做的(比如多文件编辑、支持“工程”、语法高亮、HEX编辑,内置FTP功能),PSPad也能做到,甚至做得更好!PSPad里集成了许多非常实用的工具

    PSPad_ansys.rar

    PSPad.内部包含ansys.ini和Ansys Help V11.0.chm,可以直接配置 1、选择配置文件 在工具栏->设置->自定义语法高亮”的最下方点击“载入”,打开上述目录,选中Ansys.ini,在“关联扩展名”中填写(*.mac, *.inp, *....

    pspad中ansys高亮文件

    pspad中必用的,很方便的适用于ansys命令流编辑,用了这些软件的同学,应该都比较熟悉了,这个是没有问题的,我自己就在用

    PSPad editor v5.0.2.321 dev.zip

    PSPad editor是一款简单好用的编辑器软件。软件集UltraEdit、Editplus、EmEditor等各种编辑器的优点于一身,可以同时编辑多个文件,支持高亮html、VB、C 、SQL、Pascal、JS、PHP、ASP、Python等语言代码,具有十六...

    Borland C++ PSPad 作为编译工具和编辑工具

    最近在网上看到一篇很古老的Borland C++ 5.5 && PSPad 搭配给初学者学习编程。我想大家手里肯定有很多关于 TC2.0或者TC3.0 的书籍,并且大家一定不太喜欢DOS,但书里的一些代码只能在TC里编译。而Borland C++5.5既...

    PSPad Editor编辑器v4.6中文绿色版.rar

    PSPad Editor是一款免费的文件编辑器,能够以HEX编辑器打开,支持ANSI/OEM/ISO 8859-2/UTF-8/UTF-16LE编码格式。内置文字比结工具及程序代码浏览器,ASCII表格及颜色选择器,色彩格式转换器和颜色吸管工具,剪贴板...

    PsPad文本编辑器 免费

    一款非常好用的开源免费文本编辑器 能完成日常大部分的文本编辑任务

    PSPad是一款免费的编辑器.zip

    PSPad是一款免费的编辑器.zip

Global site tag (gtag.js) - Google Analytics