jprichardson / string.js

Extra JavaScript string methods.
http://stringjs.com
1.81k stars 234 forks source link

how to apply a between operation globally for a string #200

Closed sanathko closed 8 years ago

sanathko commented 8 years ago

I have an html string with multiple table tags. String str = '<table>......</table> <table>....</table>';

when I use S(str).between('<table>', '</table>').s, I am only getting the 1st table element of the string. I need to get all the table elements (possibly as an array). Is this possible with stringjs?