[yunqa.de] Re: DIRegEx search stream

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Tue, 16 Sep 2008 19:51:27 +0200

Craig Peterson wrote:

>Are there any plans to make an TDIRegExSearchStream-type class that uses the 
>Perl algorithm?

No, this is unfortunately not possible. TDIRegExSearchStream relies on the 
partial match feature of the DFA algorithm which is unavailable to the Perl 
algorithm.

>On a more general-RE note: is there any easy way to tell whether a particular 
>regular expression can match across lines?

Partially. You can check if coMultiline is set in TDIRegEx.CompileOptions. With 
regards to the pattern itself, you can check TDIRegEx.InfoHasCrOrLf to learn if 
the pattern contains contains any explicit matches for CR or LF characters.

Ralf 

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: