title: return the position with specific word
body: <p>I have a file. It looks like this </p>
  
  <pre><code># AA        : amino acid sequence                                      #
  # OBS_sec   : observed secondary structure: H=helix, E=extended        #
  #             (sheet), blank=other (loop)                              #
  # PROF_sec  : PROF predicted secondary structure: H=helix, E=extended  #
  #             (sheet), blank=other (loop)                              #
  PHD htm |                  HHHHHHHHHHHHHHHHHHHHHH      HHHHHHHHHHHHHH|
  PROF_sec |EEEEE     HHHHHHHHHHH   EEEEEE   HHHHHHHHHH    EEEEEEEEE    |
  </code></pre>
  
  <p>I want to know the line which starts with "PROF_sec" then return position of H and E which inside |....|. </p>
  
  <p>I wrote the code like this</p>
  
  <pre><code>rexp = re.compile('(?#...)^[PROF_sec][H]+[E]+')
  List = [(n.start(0), n.end(0)) for n in rexp.finditer(file)]
  </code></pre>
  
  <p>But it return null value. </p>
  
  <p>How can I modify the code?</p>
  
  <p>PS. All the contents in the file would be consider only in one line. For example, the last "EEEEEEEEE", would give the output (493, 502) </p>