title: php regular expression for new line and spaces
body: <p>i have a string like below:</p>
  
  <pre><code> صفحه نخست - خبرآنلاین 
  
  
  
  
  
   شنبه 20 مهر 1392 - 04:18 
  
  
  
   data-val-required کلمه مورد جستجو الزامی است. id Keyword name Keyword type text value 
  </code></pre>
  
  <p>i tried to make an array of words by <code>preg_split</code> but i need some helps on regular expression.</p>
  
  <p>i used <code>preg_split('/ {1,}/', $text);</code> but it dont covered all spaces....
  some new lines are in my final array..
  i can to clean up array after the finish of the string by <code>trim</code> and <code>unset</code> the array element but before it i have to look for a better regular expression.</p>
  
  <p>what is the best regular expression format for me!? </p>