title: Splitting strings using Ruby ignoring certain characters
body: <p>I'm trying to split a string and counts the number os words using Ruby but I want ignore special characters.</p>
  
  <p>For example, in this string "Hello, my name is Hugo ..." I'm splitting it by spaces but the last ... should't counts because it isn't a word.</p>
  
  <p>I'm using <code>string.inner_text.split(' ').length</code>. How can I specify that special characters (such as ... ? ! etc.) when separated from the text by spaces are not counted?</p>
  
  <p>Thank you to everyone,
  Kind Regards,
  Hugo</p>