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

Re: analyze-string help?

Subject: Re: analyze-string help?
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Sun, 10 Jun 2012 12:30:39 +0200
Re:  analyze-string help?
On 10 June 2012 10:45, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>
>
> On 10/06/2012 07:46, Syd Bauman wrote:
>
> I think this principle of always using the simplest regex that does the job
> is a very good one. Remember, even if the regex works on all your test
> cases, there's a good chance someone in a year's time is going to come back
> to it and need to change it. Complex regexes are intrinsically very hard to
> debug, so it's a good idea to avoid them if you can.

Then, a corollary of this argument would certainly be that the
simplest available
*technique* is a very good one. substring-before/after comes to my mind even
though this splits on the first occurrence. A fn:string-split would be
nice to have,
but it's easy to implement.

-W

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.