Archive for September 9, 2007

Python Challenge level 3: “re”

Level 3 is the last of these initial text processing problems. Everything quite easy for now. Hint 1: One small letter, surrounded by EXACTLY three big bodyguards on each of its sides. #!/usr/bin/env python import re mess = open(“03.txt”).read() print ”.join(re.findall(‘[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]‘, mess)) linkedlist From linkedlist.html we’re sent to linkedlist.php, and up to Level 4.

Read the rest of this entry »