title: MongoDB Regex Search on Integer Value
body: <p>I want to regex search an integer value in MongoDB. Is this possible?</p>
  
  <p>I'm building a CRUD type interface that allows * for wildcards on the various fields. I'm trying to keep the UI consistent for a few fields that are integers.</p>
  
  <p>Consider:</p>
  
  <pre><code>&gt; db.seDemo.insert({ "example" : 1234 });
  &gt; db.seDemo.find({ "example" : 1234 });
  { "_id" : ObjectId("4bfc2bfea2004adae015220a"), "example" : 1234 }
  &gt; db.seDemo.find({ "example" : /^123.*/ });
  &gt; 
  </code></pre>
  
  <p>As you can see, I insert an object and I'm able to find it by the value. If I try a simple regex, I can't actually find the object.</p>
  
  <p>Thanks!</p>