title: Writing regex to process sets of time from outside source
body: <p>I am writing a script that is taking in data from the outside world, where I am looking at when events happen, for example two sets of timings are:</p>
  
  <pre><code>Mon - Fri: 12:00 - 14:00, 18:00 - 22:30, Sat: 18:00 - 22:00
  Tue, Wed, Thu: 17:30 - 23:00, Sat: 12:00 - 17:00, Sun: 17:00 - 22:30
  </code></pre>
  
  <p>As you can see, in each case the data is shown in a different way (mon-fri or tues,wed,thu). Can anyone give me some pointers on writing a form of regex / processing to take the data into an array such as:</p>
  
  <pre><code>$timing['mon'][1]['start'] = '12:00';
  $timing['mon'][1]['finish'] = '14:00';
  $timing['mon'][2]['start'] = '18:00';
  $timing['mon'][2]['finish'] = '22:30';
  </code></pre>
  
  <p>Thanks in advance..</p>