title: Regex to find specific number using Python regex
body: <p>I need a regex to find the maxtimeout value (40 in the following) in the RequestReadTimeout directive in Apache config. file, for example :</p>
  
  <pre><code>RequestReadTimeout header=XXX-40,MinRate=XXX body=XXX
  RequestReadTimeout header=40 body=XXX
  </code></pre>
  
  <p>PS : XXX refer to a decimal digit</p>
  
  <p>I used this :</p>
  
  <pre><code>str="RequestReadTimeout header=10-40,MinRate=10 body=10"
  re.search(r'header=\d+[-\d+]*', str).group()
  'header=10-40'
  </code></pre>
  
  <p>But I need a regex to get only the maxtimeout value (40 in this example) in one row (without using other function like spit("-")[1] ...etc).</p>
  
  <p>Thanks.</p>