Regular expression to get all words inside specific patterns (% %)
<p>All I want is this:</p>

<p>The sentences will have some words within % % and I want to extract all of them.</p>

<p>For e.g.</p>

<p>"This is a %varA% and %varB% and that one is a %VarC%"</p>

<p>and when I run it through the Javascript exec I'd like to get %varA%, %varB%, and %varC% in an array.</p>

<p>What would the pattern be? I've tried a number of iterations and none of them gets me each word separately. VarA and VarB etc. will all be words with just a-Z and 0-9, no special characters.</p>