title: Regex to catch a name and multiple groups with the same pattern
body: <p>I have the following strings:</p>
  <pre><code>| Elencia   { 1: Simple one, 0: A longer sentence, or maybe not, 2: Another sentence }
  | Elencia   { 10:    Sentence with spaces on left,     0: Same but with some spaces on right      }
  </code></pre>
  <p>I would like to catch the name on the left and the number + the sentence avoiding the multiple spaces on the left and the right.</p>
  <p>I wrote this at the moment:</p>
  <pre><code>(?&lt;point&gt;[\d]+):\s+(?&lt;content&gt;[\w ]+)
  </code></pre>
  <p>but it only catches the part inside the curly brackets and it includes the spaces at the end, which is not what I want.</p>
  <p>What I would like to have. First example:</p>
  <pre><code>- Elencia as name
  - &quot;1&quot; as point, &quot;Simple one&quot; as sentence
  - &quot;0&quot; as point, &quot;A longer sentence, or maybe not&quot; as sentence
  - &quot;2&quot; as point, &quot;Another sentence&quot; as sentence
  </code></pre>
  <p>Second example:</p>
  <pre><code>- Elencia as name
  - &quot;10&quot; as point, &quot;Sentence with spaces on left&quot; as sentence
  - &quot;0&quot; as point, &quot;Sentence with spaces on left&quot; as sentence
  </code></pre>
  <p>I'm using the regex with <a href="https://docs.godotengine.org/en/stable/classes/class_regex.html" rel="nofollow noreferrer">gdscript</a> but PHP or JavaScript style would work too.</p>
  <p>Thank you for your help!</p>