22246Re: Finding gaps in a sequence
- Nov 19, 2011Flo,
It seems I had an oops (typo) in my code. Remove the '*' between '%*^%' in the replace function, so the result can parse as a hex number.
--- In firstname.lastname@example.org, "flo.gehrke" <flo.gehrke@...> wrote:
> --- In email@example.com, "diodeom" <diomir@> wrote:
> > As you pointed out, looping in memory ought to be incomparably
> > faster than taking an illustrative walk over the displayed lines
> > (for either of the index-comparing methods), but for those of us
> > who find rapid regex swaps on 'live' text appealing :) here's yet
> > another exercise in gap-sniffing that doesn't directly evaluate
> > any of the indices; it checks instead for presence of any
> > sequence-breaking patterns....
> So we've seen five solutions now -- that's great!
> For me, your clip didn't provide any result straightaway. But I trust it will do when getting to the bottom of it.
> Yet another interesting approach! When testing your clip with 10,000 codes it works perfectly. On my notebook, it performs that task in 78 seconds.
> Your second clip is the most efficient solution by far -- it's doing the job within two seconds. Thanks, I'll install that in my clipbooks!
- << Previous post in topic Next post in topic >>