title: Regular expression to match Omnifocus projects exported to taskpaper format
body: <p>I'm trying to parse Omnifocus projects exported to taskpaper format using a one liner regex but I'm having a hard time capturing the tags, specifically having a capture group per <code>@</code> tag.</p>
  
  <p>Here is a taskpaper snippet:</p>
  
  <pre><code>- My Project
      - My Sub-Project @parallel(true) @autodone(false) @done(2017-04-01 11:12)
          - Task A: Do (1, 2, 3, @) @parallel(true) @autodone(false) @done(2017-04-01 10:43)
          - Task B: Do (4, 5, 6, @) @parallel(true) @autodone(false) @flagged @done(2017-04-01 10:58)
          - Task C: Read https://stackoverflow.com/ @parallel(true) @autodone(false) @flagged @done(2017-04-01 10:41)
  </code></pre>
  
  <p>and the Python Regular Expression I use:</p>
  
  <pre><code>^(\t*)-(.*?)((@\w+\((.*)\))*)$
  </code></pre>
  
  <p>Here is <a href="https://regex101.com/r/ZQ0nFy/1" rel="nofollow noreferrer">a link with everything set up as above</a> to try things.</p>