find all imported file names from a source file with regexp javascript
<p>i am new to regex and javascript.<br>
i am trying to create an array of all imported files of a source file using regex.<br>
before an import statement there will be a '@' sign as well. for example:<br></p>

<p>if the file looks like</p>

<blockquote>
  <p>...<br>@import file1,file2,     file3; <br>int i=6;<br> @import     file4;<br>...</p>
</blockquote>

<p>then i need an array with [file1,file2,file3,file4]</p>

<p>so far i have tried to create the reg exp itself with no success.<br>
any help with that ?<br>
Thanks
<em>edited to make things more clear</em></p>