Mega Code Archive

 
Categories / Php / Strings
 

Words and Whitespace Regexps

$string = "Foolish child!";     preg_match("/[\S]{7}[\s]{1}[\S]{6}/", $string);