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

Re: Finding first difference between 2 text strings

Subject: Re: Finding first difference between 2 text strings
From: "James A. Robinson" <jim.robinson@xxxxxxxxxxxx>
Date: Thu, 10 Sep 2009 20:53:27 -0700
Re:  Finding first difference between 2 text strings
On Thu, 10 Sep 2009 20:41:21 -0700 I wrote:
< 
< Wow, that's... very very impressive.  So you're replacing regular
< expression values with placeholders in both strings, then wrapping ever
< character in $bb with a regex expression, e.g., '(a)?', to finally
< perform a regex replacement on $aa?  What does the leading colon
< do?

One last comment.  I timed 100 iterations comparing two 520 character
strings, and both functions run in effectively the same time, but your
solution doesn't run into the stack overflow problem that mine does at
the 520+ character range.

Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       jim.robinson@xxxxxxxxxxxx
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

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.