title: Regular Expressions AND
body: <p>I am really not good with regular expressions and I come here for some assistance :). I am trying to combine regular expressions with something like AND. For example if we have a text file with:</p>
  
  <pre><code>abc1-xyz
  
  abc1-ertxyz
  
  abc1xyz
  
  postxyz
  
  abc1
  </code></pre>
  
  <p>I would like to match everything that starts with <code>"abc1"</code> AND also contains the letters <code>"xyz"</code> somewhere.</p>
  
  <p>I know that I can start with:</p>
  
  <pre><code>/^abc1/
  </code></pre>
  
  <p>but I am not sure how to combine so it can also match to contain <code>"xyz"</code>.</p>
  
  <p>Thank you for your assistance in advance. </p>