xsl-list
[Top] [All Lists]

Re: [xsl] Regular expression for matching sentences

2006-08-18 03:09:45
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--