Subject: Re: [xsl] Regular expression for matching sentences From: Carlo Liwanag <cliwanag@xxxxxxxxxxxx> Date: Wed, 23 Aug 2006 09:36:05 +0800 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Regular expression for ma, James Fuller | Thread | [xsl] Code review for article on XS, Lindsey Simon |
RE: [xsl] Saxon removes namespace i, M 1879 | Date | [xsl] template match based on exter, Lincoln |
Month |