title: Split text into words problem PHP, complicated problem
body: <p>I am trying to split the text into words:</p>
  
  <pre><code>$delimiterList = array(" ", ".", "-", ",", ";", "_", ":",
             "!", "?", "/", "(", ")", "[", "]", "{", "}", "&lt;", "&gt;", "\r", "\n",
             '"');
  $words = mb_split($delimiterList, $string);
  </code></pre>
  
  <p>which works quite fine with strings but I am stuck in some cases where I have to do with numbers. </p>
  
  <p>E.g. If I have the text "Look at this.My score is 3.14, and I am happy about it.".
  Now the array is</p>
  
  <pre><code>[0]=&gt;Look,
  [1]=&gt;at,
  [2]=&gt;this,
  [3]=&gt;My,
  [4]=&gt;score,
  [5]=&gt;is,
  [6]=&gt;3,
  [7]=&gt;14,
  [8]=&gt;and, ....
  </code></pre>
  
  <p>Then also the 3.14 is divided in 3 and 14 which should not happen in my case.
  I mean point should divide two strings but not two numbers.
  It should be like:</p>
  
  <pre><code>[0]=&gt;Look,
  [1]=&gt;at,
  [2]=&gt;this,
  [3]=&gt;My,
  [4]=&gt;score,
  [5]=&gt;is,
  [6]=&gt;3.14,
  [7]=&gt;and, ....
  </code></pre>
  
  <p>But I have no Idea how to avoid this cases!</p>
  
  <p>Anybody any idea how to solve this problem?</p>
  
  <p>Thanx, 
  Granit</p>