Advertisement
Dolphiiiin

Untitled

Nov 26th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function myFunction() {
  2. var source
  3. = '<p class="boid main-root jss439">10日</p>'
  4. + ':略'
  5. + '<p class="boid main-root jss569">18日</p>'
  6. + ':略'
  7. + '<p class="boid main-root jss659">20日</p>'
  8. ;
  9. const regex = /jss\d{3}">(.*?)</g;
  10. const days = [];
  11. var match;
  12. while ((match = regex.exec(source)) !== null) days.push(match[1]);
  13. Logger.log(days);
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement