title: Finding patterns in two files
body: <p>I have to analyse 10 years worth of data and 50+ files for each year.
  I extracted the data from the internet and all I have done is extracted the text with regular expressions.
  The format for the files differ for each year and I'm not even sure that the pattern is consistent in the files of the individual years.
  The format for 2003 seems to be</p>
  <blockquote>
  <p>title (.*)</p>
  <p>[header(.*)</p>
  <p>color number number number string (\w+\s\d+\s\d+\s\d+\s.+)</p>
  <p>color number number number string</p>
  <p>color number number number string</p>
  <p>color number number number string]&lt;==== one block</p>
  <p>header</p>
  <p>color number number number string</p>
  <p>color number number number string</p>
  <p>color number number number string</p>
  <p>color number number number string</p>
  <p>........</p>
  </blockquote>
  <p>my question is, is there a way to program something in python to identify patterns within the text files of a given year?</p>
  <p>A kind of pattern recognition, a program that outputs a regular expression that matches for one block of data perhaps.</p>
  <p>I will be using this data for linear algebra, but I want the data to be easily accessible and organized for other uses.</p>