Chat on IRC |
Mmmm.... regular expressions....
Posted by gian [send private reply] at October 12, 2001, 10:05:47 PM
is someone/anyone willing to help me work out this particulary nasty (to me) perl regular expression? It's kindof pissing me off...
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<> )]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
Posted by taubz [send private reply] at October 13, 2001, 01:20:03 PM
I couldn't even get Perl to evaluate the string enclosed by ` ` on its own.
- taubz
Posted by gian [send private reply] at October 13, 2001, 04:00:31 PM
It uses dc apparently, and arbitrary mathematical library or something.... don't worry.... for those who want to know, that is the RSA encryption algorithm... in 2 lines of perl.
http://world.std.com/%7Efranl/crypto/rsa-guts.html for more info.
Posted by grandsnafu [send private reply] at October 14, 2001, 07:24:00 PM
I'm positive that that is the scariest regular expression I've ever seen, and hopefully ever will see.
Posted by gian [send private reply] at October 17, 2001, 02:32:33 AM
That's what I thought too....
Posted by have_dinner [send private reply] at October 17, 2001, 03:25:09 AM
what does that mean? there are so many weird things i've never seen before... i'm freaking out!!
Register as a new user | ||||||||