title: Extract Regex Values (Regex Match) in Blue Prism
body: <p>In Blue Prism, I need to identify specific elements of a Data Item (text), in order to use the information later in my process.</p>
  
  <p>The text string reads:</p>
  
  <blockquote>
    <p>REKVISITION_NR: 1234567 Dato: 23-07-2018 Rekvirent: ABC, DEF GHI, JKL 60, 8600 MNO Sted: JKL 60, 8600 MNO, Kl.:14:00:00, Bestilt_tid: 60 min Tolkensnavn: PQR STU Koert_fra: VXY , 8600 Silkeborg Vedr.: Z CPR: 123456-7890 Sprog: Arabisk Type: Personlig fremmøde Godkendt: 24-07-2018 </p>
  </blockquote>
  
  <p>As you can see, each element has these traits (e.g. <strong><em>Kl.</strong>:14:00:00</em> or <strong><em>Sprog</strong>: Arabisk</em>):</p>
  
  <ul>
  <li>A string name (starting with an uppercase letter)</li>
  <li>Optionally, a period character (.)</li>
  <li>A colon character (:)</li>
  <li>Optionally, a space character ( )</li>
  <li>The value part of the string</li>
  <li>A space character ( ), which is followed by the next element.</li>
  </ul>
  
  <p>I believe I should use the Business Object <em>Utility - Strings</em>' action <em>Extract Regex Values</em>, but have not sucessfully been able to match any data that can be copied into the <em>Named Values</em>-collection.
  However, I have found that <code>([A-Z])\w+\.?: ?(\w(\d\-){0,3})+</code> brings me some of the way in terms of matching.
  I want the solution to copy the field names and values into the Named Values collection generated by the action.</p>
  
  <p>Final notes: I am using Blue Prism 6.2.1, and the action's underlying code is based on <a href="https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.match?view=netframework-4.7.2" rel="nofollow noreferrer">VB.net's Regex.Match method</a>.</p>