title: Finding all strings of a specific length using re.findall
body: <p>I want to extract all strings of a certain length from a text using a regular expression, more precisely with this instruction : </p>
  
  <p><code>words=re.findall('\w{3}',text)</code></p>
  
  <p>Here I get all strings of length 3, however I want to make it more general and have the possibility to put another number as an input instead of the '3', so I would have something like this :</p>
  
  <pre><code>order = 5 #for example
  words = re.findall('\w{order}',text)
  </code></pre>
  
  <p>This instruction doesn't work in my case but I just wanted to illustrate my problem.</p>
  
  <p>Any ideas ? Thank you for your help</p>