title: Translate regular expression to python
body: <p>I need to translate this regular expression to the python language:</p>
  
  <pre><code>(([[:alpha:]]|\.)*/PERSON([[:space:]]|$))+
  </code></pre>
  
  <p>I have a .txt file that contains names of people with the /PERSON tag and other words that do not have tags.</p>
  
  <pre><code>Leo/PERSON Messi/PERSON hello
  </code></pre>
  
  <p>Once you make the equivalent program in python to the regular expression above, the output must be this (all names with the label /PERSON, the other words are not):</p>
  
  <pre><code>Leo/PERSON Messi/PERSON
  </code></pre>