2011年3月28日 星期一
官方的正则表达式组件 RegularExpressions (3) : TMatchEvaluator
万一| 万一的 Delphi 博客 |22:36:00
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, RegularExpressions; type TForm1 = class(TForm) Memo1: TMemo; Button1: TButton; procedure Button1Click(Sen...
官方的正则表达式组件 RegularExpressions (2) : 子表达式
万一| 万一的 Delphi 博客 |21:42:00
uses RegularExpressions; const pattern = '([A-Z]+)(\d+)'; //其三个子表达式分别是:[A-Z]+\d+ [A-Z]+ \d+ txt = 'AAA1 BBB2 AA11 BB22 A111 B222 AAAA'; //测试用的目标文本 procedure TForm1.Button1Click(Sender: TObject); var match: TMatch; gr...
官方的正则表达式组件 RegularExpressions (1)
万一| 万一的 Delphi 博客 |20:55:00
刚刚试了一下 DelphiXE 新增的正则表达式组件, 它基于 C 语言实现 PCRE 库实现, 感觉设计的非常好。其主要的 TRegEx 被设计为一个结构(而不是类), 可能是基于效率的考虑;不过它主要调用了 TPerlRegEx 类的功能。TRegEx 的五个主要方法 IsMatch()、Match()、Matches(...
官方的正则表达式组件 RegularExpressions (1) : 基本应用
万一| 万一的 Delphi 博客 |20:55:00
刚刚试了一下 DelphiXE 新增的正则表达式组件, 它基于 C 语言编写的 PCRE 库实现, 感觉设计的非常好。其主要的 TRegEx 被设计为一个结构(而不是类), 可能是基于效率的考虑;不过它主要调用了 TPerlRegEx 类的功能。TRegEx 的五个主要方法 IsMatch()、Match()、Matche...
dexplore.exe shut down fixer
Embarcadero| CodeCentral Delphi Submissions |10:40:46
A lot of people (myself included) have had problems with a process called dexplore.exe stopping windows from shutting down. One way this can happen is when Embarcadero Rad Studio uses Microsoft’s dexplore help system – when Rad Studio...





冀公网安备 13098202000212号