title: How to import re and formatting code
body: <p>I am trying to import re and have a format for a license plate in my original code, however I have the code but just do not know where to put it. I hope this is clear in my coding.</p>
  
  <pre><code>import re
      number_plate = re.match('\d{2}[A-Z]{2}\d{3}','12MNB36'):
  </code></pre>
  
  <p>The above code is what i am trying to input into my actual code shown below.</p>
  
  <pre><code>over_limit = []
  file=open("newfile.txt", "w")
  
  while True:
      speed = float()
      distance = 10
      time =float(raw_input('enter time'))
      speed = distance/time
      number_plate = raw_input('enter number plate')
      print speed
  
  
  if speed&gt;31.2928:
      #70 mph converted into m/s
      over_limit.append(number_plate)
      print over_limit
      file.write(number_plate)
  
  
  else:
      print 'ok'
  file.close()
  </code></pre>