[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 

>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.


Delphi Inspiration mailing list

Other related posts: