Recent Changes - Search:

PythonChallenge3

(:source lang=python:)

  1. !/usr/bin/env python

import re

if __name__ == "__main__":

    data = open('input2', 'r').read()

    result = re.findall('[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]', data)
    print ''.join(result)

(:sourceend:)

Page last modified by brett on May 04, 2012, at 11:01 PM