Revision: 18367
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 29, 2009 07:08 by svenito
Initial Code
$split_tags = preg_split( "/[\s,]*\\\"([^\\\"]+)\\\"[\s,]*|[\s,]+/", $search_term, 0, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY );
Initial URL
Initial Description
will split the string "I am" search words into [0] => I am [1] => searching [2] => words
Initial Title
Split string by commas and spaces but preserve quoted strings
Initial Tags
search
Initial Language
Regular Expression