Thanks Ralf, that fixed it. I
really appreciate the quick fix. Jim _______________________________________________ Delphi Inspiration mailing list yunqa@xxxxxxxxxxxxx //www.freelists.org/list/yunqaAt 00:34 15.05.2010, Jim Bretti wrote:A user of my application has created a regluar _expression_ that causes errors when my app calls TDIPerlRegEx.Format. The errors include index out of range, access violation, and invalid pointer errors. The problem seems to be related to the following subject, match pattern and format pattern: Subject String: That afternoon, then Dow Jones C.E.O. Rich Zannino Came down From the executive 11th floor to the newsroom to address the staff about the morning’s announcement. Match Pattern: (?-i)[\[\(]?([A-Z])\.([A-Z])\.([B-Z])\.([\'\x92]s)?[\]\)]?(?i)[\s]((?-i)[A-Z](?i)[a-z]{1,14})([\'\x92]s)?[\]\)]?([\p{Po}\p{Pf}])? Format Pattern: <s> $1 $2 $3$4 $5$6$7 In the following code, the above subject, match pattern and format pattern are placed in memo1, memo1 and memo3. The call to RE.Match succeeds, and RE.Format raises an access violation:Excellent bug report and demo project, thank you! The problem is now fixed in DIRegEx 5.1.6, just uploaded here: http://www.yunqa.de/delphi/doku.php/products/regex/index Ralf _______________________________________________ Delphi Inspiration mailing list yunqa@xxxxxxxxxxxxx //www.freelists.org/list/yunqa |