Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Re: (Golf) Keysort

by demerphq (Chancellor)
on Feb 18, 2002 at 15:59 UTC ( #146164=note: print w/ replies, xml ) Need Help??

in reply to Re: (Golf) Keysort
in thread (Golf) Keysort


And you are correct with how im defining an integer.

However you are correct that there is a minor problem with the regex. The ignore leading whitespace shouldnt happen, as it prevents reconstructive methods from being successful. (Although ST style stuff should be fine with it...)

So the regex should be

Your (?!\d) is a worthy and intelligent addition, but I was willing to overlook the issue it resolves. ;-)

BTW, my reasoning for disallowing 0000 and the like was to ensure that binary hash keys were sorted lexicographically.

Im going to update the original node with your score and the bit about the regex tomorrow.

Yves / DeMerphq
When to use Prototypes?

Comment on Re: Re: (Golf) Keysort
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://146164]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2015-10-04 03:56 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (98 votes), past polls