Last active
March 14, 2019 14:55
-
-
Save jasp402/103a301d3641fc6e75e2cab2a34301e2 to your computer and use it in GitHub Desktop.
JavaScript - Get Content Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#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