title: Regular Expression on IOS shortcuts for Line Matching
body: <p>I'm trying to extract activities and the corresponding date and time from the list below. I'm using the shortcut app on iOS for the regex matching.</p>
  
  <p>In the end I want to have the name of the activity and the time for the given weekday (parameter). Testing on <a href="https://regex101.com/" rel="nofollow noreferrer">https://regex101.com/</a></p>
  
  <p>If you need more information let me know. Thanks in advance!</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <h2>Issue</h2>
  
  <p>So the issue is that with the current regex (see below) only activities are shown where the given weekday parameter is followed immediately. In the regex below it will only match</p>
  
  <blockquote>
    <p>Pilates</p>
    
    <p><strong>Mittwoch 11:00 - 12:00</strong></p>
    
    <p><strong>Mittwoch 17:00 - 18:00</strong></p>
    
    <p>Montag 19:00 - 20:00</p>
    
    <p>Dienstag 17:00 - 18:00</p>
    
    <p>Dienstag 18:00 - 19:00</p>
    
    <p>Donnerstag 11:00 - 12:00</p>
    
    <p>Donnerstag 17:00 - 18:00</p>
    
    <p>Donnerstag 20:00 - 21:00</p>
    
    <p>Freitag 17:00 - 18:00</p>
    
    <p>Samstag 11:00 - 12:00</p>
    
    <p>Samstag 13:00 - 14:00</p>
    
    <p>Sonntag 12:00 - 13:00</p>
  </blockquote>
  
  <h2>Example Code</h2>
  
  <p>Mittwoch (Wednesday) added as example, this will be a dynamic variable in the end.</p>
  
  <pre><code>([-\&amp;\sA-zÀ-ÿ]+\n((Mittwoch)\s\d+:\d+\s-\s\d+:\d+\n)+)
  </code></pre>
  
  <h2>Example data</h2>
  
  <blockquote>
    <p>Pilates</p>
    
    <p>Montag 19:00 - 20:00</p>
    
    <p>Dienstag 17:00 - 18:00</p>
    
    <p>Dienstag 18:00 - 19:00</p>
    
    <p><strong>Mittwoch 11:00 - 12:00</strong></p>
    
    <p><strong>Mittwoch 17:00 - 18:00</strong></p>
    
    <p>Donnerstag 11:00 - 12:00</p>
    
    <p>Donnerstag 17:00 - 18:00</p>
    
    <p>Donnerstag 20:00 - 21:00</p>
    
    <p>Freitag 17:00 - 18:00</p>
    
    <p>Samstag 11:00 - 12:00</p>
    
    <p>Samstag 13:00 - 14:00</p>
    
    <p>Sonntag 12:00 - 13:00</p>
  </blockquote>
  
  <h2>Expected Result</h2>
  
  <blockquote>
    <p>Pilates</p>
    
    <p>Mittwoch 11:00 - 12:00</p>
    
    <p>Mittwoch 17:00 - 18:00</p>
  </blockquote>