title: How to combine 2 conditions and more in regex
body: <p>I want to create a regex that match '.', '#' and ':' <strong>and also match everything inside these brackets '[' &amp; ']'</strong> such as [foo] &amp; [bar]</p>
  
  <p>I already have this match <code>string.match(/[.#:]/g)</code> for '.','#' and ':'.</p>
  
  <p>I know that the brackets regex should look like this <code>\[.\]</code></p>
  
  <p>but how do I combine them both to one condition?</p>
  
  <p>thanks,
  Alon</p>