This fails for the input:
I'm a bit confused by that as the format you show (a set of word
elements) looks like the output not the input. My solution fails (or at
least isn't written to do anything useful) if any singleword is greater
than your length (as it wasn't in the problem description:-)
If you clarify what the input is in this case (and what you want the
output to be) I'll see if I can tweak the regexp,...
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--