Skip to content

Instantly share code, notes, and snippets.

@cethap
Created July 27, 2014 06:13
Show Gist options
  • Save cethap/e200cfbce3c700849521 to your computer and use it in GitHub Desktop.
Save cethap/e200cfbce3c700849521 to your computer and use it in GitHub Desktop.
ShortJsGist
var myString = (function () {/*
<div id="someId">
some content<br />
<a href="#someRef">someRefTxt</a>
</div>
*/}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment