Skip to content

Instantly share code, notes, and snippets.

@jasp402
Last active March 14, 2019 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasp402/103a301d3641fc6e75e2cab2a34301e2 to your computer and use it in GitHub Desktop.
Save jasp402/103a301d3641fc6e75e2cab2a34301e2 to your computer and use it in GitHub Desktop.
JavaScript - Get Content Table
$('#ClaimPaymentGrid table tbody tr')
.get()
.map(tr=>tr
.innerHTML
.match(/<.[^>].*?<\/td>/g)
.map(x=>x.indexOf('View EOB')==-1
? x.replace(/<(.|\n)*?>/g,'')
: x.match(/(onclick=\").*?\"/g)
.map(x=>x.replace(/onclick=|"/ig,''))));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment