[yunqa.de] Re: DIPerlRegEx.Format errors

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Sat, 15 May 2010 10:31:49 +0200

At 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



Other related posts: