title: Regex that matches lines with a leading or trailing asterisk
body: <p>I need to match every line that starts or ends with a single asterisk character without any other asterisk in between.</p>
  
  <pre><code>1.- foo BAR, FOO1*
  
  2.- *FOO, bar% foo
  
  3- *foo). BAR", fOo*
  
  4.- **foo BAR foo
  
  5.- *foo bar foo**
  
  6.- foo bar * foo
  
  7.- foo bar foo
  </code></pre>
  
  <p>I want to match the lines number 1 to 3, the other lines I won't match them.</p>
  
  <p>My aproach:</p>
  
  <pre><code>^[\*](?:[a-zA-Z0-9.!#$%&amp;'+/=?^_`{|}~-\s])|^[a-zA-Z0-9.!#$%&amp;'+/=?^_`{|}~-\s]+.\*$
  </code></pre>
  
  <p>but doesn't work in all cases.</p>