title: Poedit regex based parser?
body: <p>In our JS files we use the following format for Gettext translation:<br/></p>
  
  <pre><code>var str1 = '!t[The text that should be translated]';
  var str2 = '!t[Some more text]';
  </code></pre>
  
  <p>This JS files will be parsed using PHP and the parsed strings get translated via Zend Framework Zend_Translate. The generated JS looks like this:  </p>
  
  <pre><code>var str1 = 'The text that should be translated';
  var str2 = 'Some more text';
  </code></pre>
  
  <p>For extracting the strings to be translated and for translating our PHP files we use Poedit, it works very well.<br>
  Is there a way to parse the strings to be translated out of <code>'!t[...]'</code> using Poedit?  </p>
  
  <p>What would solve the problem is some sort of a Poedit parser that is regex based. Is there any such parser?</p>
  
  <p>As an alternative, we could define a source code parser based on xgettext with the language PHP as parameter(you have to do it because xgettext doesn't know about .js files and it treats them a C files). Then we use the following format in our JS files:</p>
  
  <pre><code>var str1 = '&lt;?=_t("The text that should be translated")?&gt;';
  var str2 = '&lt;?=_t("Some more text")?&gt;';
  </code></pre>
  
  <p>Needless to say, it's really uncool to use code that looks like php all over the place just to be able to parse the strings with Poedit.</p>