I need some help with a regexp for preg_split. I want the string

  str = "this is 'a string that' contains phrases";

to be split into:

  arr[] = "this";
  arr[] = "is";
  arr[] = "a string that";
  arr[] = "contains";
  arr[] = "phrases";

but I'm having some trouble coming up a good regexp that would do the job.
Any regexp gurus out there who can point me in the right direction?

David Brännlund

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to