title: Regex matching a word with numbers in it
body: <p>I'm using <code>Text::Ngrams</code> to determine the word combinations in a string. However, I need to keep words that have digits in them. I've determined that <code>$o-&gt;{tokenrex}</code> is what I need to modify, but I can't determine the proper regex for it.</p>
  
  <p>The original is <code>qr/([a-zA-Z]+|(\d+(\.\d+)?|\d*\.\d+)([eE][-+]?\d+)?)/;</code> but I'm thinking I need something more along the lines of this:</p>
  
  <pre><code> qr/([a-zA-Z]+|(?&lt;=\w)(\d+(\.\d+)?|\d*\.\d+)([eE][-+]?\d+)?(?=\w)|(\d+(\.\d+)?|\d*\.\d+)([eE][-+]?\d+)?)/;
  </code></pre>
  
  <p>Which should, if I'm reading regex right, match any number of alpha characters, or a "number" that has a word character before and after it, or a "number". Except that it's splitting up my "word" into separate tokens. The example word I'm working with is "<strong>A1X</strong>".</p>
  
  <p>Any assistance would be great.</p>