title: regex matching the pattern
body: <p>Is there a way to write a regular expression in python that matches the string of the following format:</p>
  <p><code>feat(fix-validation): some texts (Aerogear-G1010)</code></p>
  <p>or</p>
  <p><code>feat$($fix-validation$)$:$some texts$($Aerogear-G1010$)</code></p>
  <p>here, $ = represents Zero or more white space can be present</p>
  <h2>breakdown:</h2>
  <p><code>feat</code> : string from a fixed subset of strings ['feat','fix','docs','breaking']</p>
  <p><code>fix-validation</code> : string of max <strong>n</strong> length</p>
  <p><code>some texts</code> : string of max <strong>m</strong> length</p>
  <p><code>Aerogear-G1010</code> : Prefix should always be a string <code>Aerogear-</code> and after that some alphanumeric characters of max <strong>q</strong> length</p>
  <p><strong>Note :</strong> we can't escape the special characters like <code>(</code> <code>)</code> <code>:</code> <code>-</code> and should be in the exact same format as shown in the example below:</p>
  <ol>
  <li>feat(feat-new): new feature for group creation (Aerogear-1234)</li>
  <li>docs(new docs): add new document on the file repo (Aerogear-G1235)</li>
  <li>fix(fix-warnings): fix user raised concerns (Aerogear-P1230)</li>
  </ol>
  <p>I was only able to match the string with fix subset of strings using pattern: <code>'^fix|docs|feat\s+\('</code> . I am not able to add zero or more spaces after a matched string followed by <code>(some texts) :</code></p>
  <p>Can this be achieved ? thank you in advance :)</p>