[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Regular expression for matching sentences

Subject: Re: Regular expression for matching sentences
From: Carlo Liwanag <cliwanag@xxxxxxxxxxxx>
Date: Wed, 23 Aug 2006 09:36:05 +0800
sentence matching
Thank you very much for the replies. I just found out that it can be done without the \b just like how you suggested.
Thanks again. =D
James Fuller wrote:


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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.