title: Regex that will match a combination of letters and numbers NOT ending with "km"
body: <p>I'm new here so I'll try my best. </p>
  
  <p>I have a line of text containing different car information.</p>
  
  <blockquote>
    <p>65101km,Sedan,Manual,18131A,FWD,Used,5.5L/100km,Toyota,camry,SE,{AC, Heated Seats, Heated Mirrors, Keyless Entry},2010</p>
  </blockquote>
  
  <p>I am trying to write a regex that will match a combination of letters and numbers NOT ending with "km" in that line.
  It is the car's serial number that can differ from one carmaker to another.
  For example: </p>
  
  <blockquote>
    <p>18FO724A, 18131A, 19BF723A</p>
  </blockquote>
  
  <p>These are different serial numbers from different car models.</p>
  
  <p>I tried this: </p>
  
  <pre><code>/((?:[a-zA-Z]+[0-9]+[^km]$|[0-9]+[a-zA-Z])[a-zA-Z0-9])/
  </code></pre>
  
  <p>But it keeps on returning the # of kilometers</p>
  
  <blockquote>
    <p>65101km</p>
  </blockquote>
  
  <p>while the answer I need is</p>
  
  <blockquote>
    <p>18131A</p>
  </blockquote>
  
  <p>Any help will do.
  Thanks</p>