Hi.
There's an awesome little downloadable app called "the regex coach"
It gives you good visuals on what the various parts of your expression are
doing and is useful for debugging regular expressions whatever your level of
expertise.
I'm totally unaffiliated with the software :)
--->N
.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:.
Nathan Young
CDC Site Design & Development->Interface Development Team
A: ncy1717
E: natyoung(_at_)cisco(_dot_)com
-----Original Message-----
From: Florent Georges [mailto:darkman_spam(_at_)yahoo(_dot_)fr]
Sent: Sunday, May 07, 2006 6:18 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Sequence of chars not working with analyze-string
Michael Kay wrote:
Hi
.{30,60} matches any sequence of characters with a minimum
length of 30 and a maximum length of 60, and generally
speaking unless specified otherwise a regular expression
will match the longest sequence of characters it can.
So it's clear why it's doing what it does. I don't have
time right now to suggest what you should be doing
instead.
I didn't study this case in details, but I guess that use
substring() or that replace the regexp "(.{30,60})" by
".{30}(.{1,30})" will do the job, if I right understood
the requierments.
Regards,
--drkm
______________________________________________________________
_____________
Faites de Yahoo! votre page d'accueil sur le web pour
retrouver directement vos services préférés : vérifiez vos
nouveaux mails, lancez vos recherches et suivez l'actualité
en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--