title: Cannot match integer value using regex - error (at <stdin>:6): number not a string or array
body: <p>I have multiple JSON files with  a person's age and I want to match specific ages using regex, however, I cannot be able to match even a single integer in a file.</p>
  
  <p>I can select age using following <code>jq</code>,</p>
  
  <pre><code>jq -r .details.Age
  </code></pre>
  
  <p>I can match <code>Name</code> using following <code>jq</code>,</p>
  
  <pre><code>jq -r 'select(.details.Name | match("r.*"))'
  </code></pre>
  
  <p>But when I try to use <code>test</code> or <code>match</code> with <code>Age</code> I get following error,</p>
  
  <pre><code>jq -r 'select(.details.Age | match(32))'
  jq: error (at &lt;stdin&gt;:6): number not a string or array
  </code></pre>
  
  <p>Here is code,</p>
  
  <pre><code>{
    "details": {
      "Age": 32,
      "Name": "reverent"
    }
  }
  </code></pre>
  
  <p>I want to be able to match <code>Age</code> using <code>jq</code> something like this,</p>
  
  <pre><code>jq -r 'select(.details.Age | match(\d))'
  </code></pre>