How would i create a regex for the following : <pre><code>some value {arg1} {arg2} {arg3}
another value {arg1}
idkhere {arg1} {arg2}
</code></pre>

<p>I'm looking to create a regex that will match each {arg\d} as a group, so if theres 3 args in a line it'll have 3 groups, if one then only one group. I'm new to regex so not sure how I'd do this.</p>
