.htaccess rewrite request when the_request starts with string in list
<p>I have to implement the following Rewrite rule(s) in an .htaccess file (Apache Webserver), but have no idea where to start and what is the best approch. 
But it should actually do the following:</p>

<h1>psuedo-code:</h1>

<pre><code>  if (path begins with "patternA", "patternB" or "PatternC") {

      if (path matches "patternA")
          redirect to /xxxxxx-a
      else if (path matches "patternB")
          redirect to /xxxxxx-b
      else if (path matches "patternC")
          redirect to /xxxxxx-c             
  }
</code></pre>

<p>Thanks in advance!</p>