title: htaccess regular expression help needed
body: <p>I'm not very good at regular expressions at the best of times, and right now I have a problem that's giving me a headache with a .htaccess file. Can anyone here help me write the right command?</p>
  
  <p>I'm trying to RedirectMatch permanent for URLs that are patterned like the following:</p>
  
  <p><a href="http://www.mydomain.tld/topic000-my-name-slug.html" rel="nofollow">http://www.mydomain.tld/topic000-my-name-slug.html</a></p>
  
  <p>where 000 represents a 1, 2, or 3 digit number.</p>
  
  <p>I want to rewrite these URLs to the following pattern:</p>
  
  <p><a href="http://www.mydomain.tld/my-name-slug" rel="nofollow">http://www.mydomain.tld/my-name-slug</a></p>
  
  <p>The phrase "my-name-slug" can vary in length and always separates words with hyphens. I don't want the .html on the end any more.</p>
  
  <p>Can anyone help me with this?</p>