title: PHP Regex Strings With Apostrophe
body: <p>I'm trying to search strings of the format <code>[number].word word word</code> in text,
  for example : <code>1.Test number one</code>
  The pattern i'm using <code>$pattern = '~\d+[.][\s]*[A-Z]{1}[\w\d\s]+~'</code> , but the problem is that pattern does not find strings with apostrophe such as <code>5.That's a valid string</code>
  I've also tried using <code>$pattern = '~\d+[.][\s]*[A-Z]{1}[\w|\d|\s|\']+~'</code> but it doesn't work either.</p>
  
  <p>How could I fix the regular expression so it will detect also strings with apostrophes?</p>
  
  <p>Thanks !</p>