title: Python - Using str.replace with a wildcard
body: <p>I'm trying to rename folder names named with this pattern: FOLDERNAME (###)</p>
  
  <p>I'm trying to get rid of (###), a series of numbers of random length.</p>
  
  <p>I would like to use str.replace as show below to do it, but I'm not sure I can use a wildcard this way...</p>
  
  <pre><code>folderdir = os.listdir(path)            # Listing the folder names
  for foldername in folderdir:
      output = foldername.replace("(*)", "")
      rename()
  </code></pre>