title: Python regex to PHP?
body: <p>I'm trying to convert a Python script into PHP.</p>
  
  <p>The following 2 regular expressions work in Python:</p>
  
  <pre><code>'/\*\*([\w\n\(\)\[\]\.\*\'\"\-#|,@{}_&lt;&gt;=:/ ]+?)\*/'
  '(?:\* ([\w\d\(\),\.\'\"\-\:#|/ ]+)|(?&lt;= @)(\w+)(?: (.+))?)'
  </code></pre>
  
  <p>...however, if I try to run them in PHP I get:</p>
  
  <pre><code>Warning: preg_match_all() [function.preg-match-all]: Unknown modifier ']'
  </code></pre>
  
  <p>How come?</p>