Live data from Hacker News

Skype's Crazy Regex Easter Egg

blog.nyaruka.com

21–30 of 52 posts

Re: Skype's Crazy Regex Easter Egg

#23
post #13
post #6

Earlier quoted context omitted.

yup, just some toying around by our mac devs :)

As a suggestion, you could search the line for the substring with the least Levenshtein distance from the correction, to use as the text to replace—and thus also support the "*word" correction syntax I see quite more often from non-technical friends. :)

I believe (though am likely wrong) that the *correction format originated in IRC, where you can't edit text once you've sent it... though I now see s/wrd/word/ quite often too - but that's mainly in technical rooms.

Re: Skype's Crazy Regex Easter Egg

#24
post #18

Valentines day special guy> I love you darling! girl> GO 2 HELL!! guy> s/love/hate guy> s/darling/bitch

Last time I tried, I could only edit my posts while the other one hadn't answered yet. So: haha, but no.

In a group chat, I seem to be able to edit my previous messages OK - even if someone has replied already and if I've written something else since then.

Re: Skype's Crazy Regex Easter Egg

#25
I find it highly annoying that this, as far as I understand, really doesn't use regular expressions.

The s/that/this/ syntax is not, of course, a regular expression. The regular expression is the thing that might go into the "that" part, an expression that can match against several different inputs. If all it supports is literals, it's not really worth calling it a regular expression, in my opinion.

The article expresses this like so:

Some experimentation shows that it isn't a full regular expression engine, it will only do straight word substitution.

I think this is stretching it; sure all literal strings are regular expressions, but if that's all there is (i.e. no alteration, repeat etc), then why call it an RE at all?

Am I just being grumpy?

Re: Skype's Crazy Regex Easter Egg

#27
post #26

This doesn't work on windows version of skype.. i guess windows users have to pay for not having regex :P

Now a good question would be, will it work if I had Regex for windows installed when installing skype or what is its windows replacement..!!

Re: Skype's Crazy Regex Easter Egg

#28
post #25

I find it highly annoying that this, as far as I understand, really doesn't use regular expressions. The s/that/this/ syntax is not , of course, a regular expression. The regular expression is the thing that might go into the "that" part, an expression that can match against several different inputs. If all it supports is literals, it's not really worth calling it a regular expression, in my opinion. The article expr…

I agree with you. This is simple substitution. (If we're going to call this a regex mechanism, so is Find/Replace in Word.)

Re: Skype's Crazy Regex Easter Egg

#29
post #14

I've always wanted to implement this in my IRC client, but been too lazy, it's nice to see it implemented in some form of chat client, although it's a bit lacking. Is the change visible for all participants?

You can edit sent messages on IRC?

Nope, but this would be a purely client-only visual thing (so, editing the local chat buffer), primarily just to have done it.
Post reply on HN