PHP Words And Whitespace Regexps – String Function

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

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.