title: How do i capture text between two string values?
body: <h1>The Problem</h1>
  
  <p>I have a hobby project that has the aim to sync multiple calendars by requesting the ics file from persons calendars in a group, for the optimal time to plan a meeting. Some sort of lazy way to schedule meetings :)</p>
  
  <p>But i got stuck on reading the ics file for two reasons:</p>
  
  <ol>
  <li>I don't really understand Regex.</li>
  <li>And i don't know how to achieve my goal with string manipulation.</li>
  </ol>
  
  <p>The ics file is already structured, so i know that i want to start from <code>BEGIN:VEVENT</code> and gather the that text down to <code>END:VEVENT</code>.</p>
  
  <p>I want every event to in a later stage become a class so i can read the data and come up with a decision to present for the end user. </p>
  
  <h1>Background</h1>
  
  <p>I tried the regex expression: <code>BEGIN:VEVENT(?:[\w\s\:\@\.\;\-\=\ä\å\ö\\\,\/\#]*)END:VEVENT</code> but that is not a very valid approach. Because it gathers all of the the events and does not divide them into separate groups.</p>
  
  <p>I have been using regexer.com to test my regex expression.</p>
  
  <h1>Not code but what i work on</h1>
  
  <p>This is some of the text from the ics file:</p>
  
  <pre><code>BEGIN:VEVENT
  DTSTART:20121220T180000Z
  DTEND:20121220T190000Z
  DTSTAMP:20190503T064840Z
  UID:SomeHash@google.com
  ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=Name;X-NUM-GUESTS=0:mailto:MailAddress
  CREATED:20121212T061002Z
  LAST-MODIFIED:20121212T061003Z
  LOCATION:ALocation
  SEQUENCE:1
  STATUS:TENTATIVE
  SUMMARY:SomeText
  TRANSP:OPAQUE
  CATEGORIES:http://schemas.google.com/g/2005#event
  END:VEVENT
  BEGIN:VEVENT
  DTSTART:20121213T143000Z
  DTEND:20121213T153000Z
  DTSTAMP:20190503T064840Z
  UID:SomeHash@google.com
  ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=Name;X-NUM-GUESTS=0:mailto:MailAddress
  CREATED:20121212T061146Z
  LAST-MODIFIED:20121212T061146Z
  LOCATION:ALocation
  SEQUENCE:1
  STATUS:TENTATIVE
  SUMMARY:SomeText
  TRANSP:OPAQUE
  CATEGORIES:http://schemas.google.com/g/2005#event
  END:VEVENT
  </code></pre>
  
  <h1>Desired outcome</h1>
  
  <p>Is to get a array of matches with the string text so i can split it even more and create classes.</p>
  
  <h1>Disclaimer</h1>
  
  <p>As this is a hobby project i want to take on a challenge and not use a plugin or helping library. But links to these are appreciated if i can see how they solve the problem.</p>