title: What is the Javascript Regexp for finding the attributes in a <span> tags?
body: <p>I have a <code>&lt;div contenteditable="true&gt;</code> that I am trying to use to get text from users. I would use a simple <code>&lt;textarea&gt;</code>, but I need line-breaks and eventually lists and tables etc. I am trying to build something that is semi a rich-text editor, but not a full fledged one. I do not want to use a rich text editor.</p>
  
  <p>I am trying to eliminate the attributes on <code>&lt;span&gt;</code> tags from the text that is typed into the <code>&lt;div contenteditable="true&gt;</code> . Is there a way to do that with Regexp? I was having difficulties coming up with a Regexp because I can't figure out how to make it so that the string starts with <code>&lt;span</code> and ends with <code>&gt;</code> and any number of characters can be in between. Is there a way to combine that in one Regexp? I came up with <code>/^&lt;span &gt;$/</code> but that does not work because there is no division between the two strings. Would something like this work: <code>/^[&lt;span][&gt;]$/g</code>?</p>