title: How to change this regex to properly extract tag attributes - should be simple
body: <p>I need to "grab" an attribute of a custom HTML tag. I know this sort of question has been asked many times before, but regex really messes with my head, and I can't seem to get it working.</p>
  
  <p>A sample of XML that I need to work with is </p>
  
  <p><code>&lt;!-- &lt;editable name="nameValue"&gt; --&gt; - content goes here - &lt;!-- &lt;/editable&gt; --&gt;</code></p>
  
  <p>I want to be able to grab the value of the name attribute, which in this case is nameValue. What I have is shown below but this returns a null value.</p>
  
  <p>My regex string (for a Java app, hence the \ to escape the ") is: <br>
       <code>"(.)?&lt;!-- &lt;editable name=(\".*\")?&gt; --&gt;.*&lt;!-- &lt;/editable&gt; --&gt;(.)?"</code></p>
  
  <p>I am trying to grab the attribute with quotation marks I figure this is the easiest and most general pattern to match. Well it just doesn't work, any help will help me keep my hair.</p>