[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Regular expression for matching sentences
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Fri, 18 Aug 2006 12:09:31 +0200
Carlo Liwanag wrote:
I am trying to match my text template to catch sentences (sentences will end in '.','?','!')
So that I can count the number of em-spaces on it. But I just don't know how to create it without using \b (because saxon probably does not support it). Is there an alternative? Please help.
Thanks,
Carlo

/[A-Z].*\./



matches anything that starts with a capital letter and ends in a full stop....though be warned, this can return false positives.

gl, Jim Fuller

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member