title: how to use php explode or pregmatch in this text
body: <p>Can anyone help me how to split /explode verse format to 3 parts?</p>
  
  <p>The condition should be as follows.</p>
  
  <p>the second and 3rd part must be seperated by a colon. so for example in Gen 1:1</p>
  
  <p>it must be seperated as</p>
  
  <pre><code>[0] = Gen
  [1] = 1
  [2] = 1
  </code></pre>
  
  <p>it is delimited by a space (or many space to make it user friendly) and by a colon</p>
  
  <p>secondly, in verses with numeric in front is a problem because user can type it as </p>
  
  <p>1 Cor 1:1 and they can also type it as 1Cor 1:1</p>
  
  <p>in either case I want [1] and [2] to be split by a colon and the remaining parts will be trimmed all space and became the [0] value.</p>
  
  <p>is this possible? Because I am thinking of using only one text box for searching of verse and php will validate it accordingly before passing it as query.</p>
  
  <p>Thanks</p>