Re: Correction



Dave Sexton wrote:

string pattern =
@"(?<sentence>.*? ) # lazily match sentence so that '.' does not capture eos
(?<eos> (?<! /) # negative lookbehind for /
/)?$ # match single '/' at end of string or just end of string";

Almost - this matches "My Taylor is /" twice: once as it should, and
again on the empty string after the /. Those optional matches are
tricky!

--

..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn In print, in stores.
.



Relevant Pages

  • Re: How to get a reference to main form in a Windows Form 2.0 Application?
    ... Form MainForm = ... Delphi skills make .NET easy to learn In print, in stores. ...
    (microsoft.public.dotnet.general)
  • Re: Asynchronous calls in C#
    ... You can try my Asynchronous Delegates article at ... Delphi skills make .NET easy to learn ... Being printed - in stores by June ...
    (microsoft.public.dotnet.faqs)
  • Re: Reflection and Nullables
    ... Very clever! ... Delphi skills make .NET easy to learn In print, in stores. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Borland update policy
    ... Or selling more copies. ... Delphi skills make .NET easy to learn ... Being printed - in stores by June ...
    (borland.public.delphi.non-technical)
  • bonnet or cabover
    ... Hey Troops working for a new company towing Woolworths pans. ... Now some of the stores are a bit tricky to get on the docks, ...
    (misc.transport.trucking)