I have a PHP regEx, how do add a condition for the number of characters?
问题 I have a regular expression that Im using in php: $word_array = preg_split( '/(\/|\.|-|_|=|\?|\&|html|shtml|www|php|cgi|htm|aspx|asp|index|com|net|org|%|\+)/', urldecode($path), NULL, PREG_SPLIT_NO_EMPTY ); It works great. It takes a chunk of url paramaters like: /2009/06/pagerank-update.html and returns an array like: array(4) { [0]=> string(4) "2009" [1]=> string(2) "06" [2]=> string(8) "pagerank" [3]=> string(6) "update" } The only thing I need is for it to also not return strings that are