Home
> Uncategorized > ‘Not a real geek Goodbye my friends’ – Skyscanner’s Geek of the Week
‘Not a real geek Goodbye my friends’ – Skyscanner’s Geek of the Week
SkyScanner’s Geek of the week had this puzzle:
here’s a message for anyone fluent in
Regex:
import re
re.sub("(?si)z", " ",
re.sub("(?si)[^abdefgiklmnorstyz]", "", """NcoHjptXzuQvaJqPzu
rCeUhxaClHpqzJgWupeheCPxkczWXhGJoUvpocdHQubVyWjpecjzHpmXuyQvzH
wfPcrXuijepHnqVdjs"""))
Couldn’t help myself with the challenge:
C:Python26>python.exe
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.sub("(?si)z", " ", re.sub("(?si)[^abdefgiklmnorstyz]", "", """NcoHjptXzuQ
vaJqPzu
… rCeUhxaClHpqzJgWupeheCPxkczWXhGJoUvpocdHQubVyWjpecjzHpmXuyQvzH
… wfPcrXuijepHnqVdjs"""))
‘Not a real geek Goodbye my friends’
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback