title: Regex with optional prefix OR Suffic
body: <p>I've used the | to successfully have optional terms in part of a string but now I need an optional string on either side of another e.g</p>
  
  <pre><code>(Near|In|Close to)(A|B|C|D|E)(Vicinity|Area)
  </code></pre>
  
  <p>where I will accept <em>either</em>:</p>
  
  <ul>
  <li>Near A
  or</li>
  <li>A Area</li>
  </ul>
  
  <p>other then doing</p>
  
  <pre><code>((Near|In|Close to)(A|B|C|D|E))|((A|B|C|D|E)(Vicinity|Area))
  </code></pre>
  
  <p>I can't figure  out a way to use the optional flag to do something that looks more like</p>
  
  <p>(Near|In|Close to)(A|B|C|D|E))(Vicinity|Area)</p>
  
  <p>where it will accept either side</p>