Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var numsplit = c.split ("#");
- for (var a = 0; a < numsplit.length; a++) {
- var commsplit = c.split (",");
- for (var b = 0; b < commsplit.length; b++) {
- //Logger.log("commasplit" + b);
- if (!commsplit[b].match(/[a-z]/i)) {
- if (!commsplit[b].match(/[–]/i)) {
- //Logger.log("singlenumber");
- total++;
- } else {
- //Logger.log("range");
- var dashsplit = commsplit[b].split("–");
- var diff = dashsplit[1] - dashsplit[0];
- total += diff;
- }
- }
- }
- }
- [14-11-09 17:50:11:849 PST] numsplit 0
- [14-11-09 17:50:11:849 PST] commasplit 0
- [14-11-09 17:50:11:849 PST] numsplit 1
- [14-11-09 17:50:11:850 PST] commasplit 0
- [14-11-09 17:50:11:850 PST] All-Star Western Vol. 3 #1–6
- [14-11-09 17:50:11:850 PST] 0.0
- [14-11-09 17:50:11:850 PST] numsplit 0
- [14-11-09 17:50:11:850 PST] commasplit 0
- [14-11-09 17:50:11:851 PST] numsplit 1
- [14-11-09 17:50:11:851 PST] commasplit 0
- [14-11-09 17:50:11:851 PST] All-Star Western Vol. 3 #7–12
- [14-11-09 17:50:11:851 PST] 0.0
- [14-11-09 17:50:11:852 PST] numsplit 0
- [14-11-09 17:50:11:852 PST] commasplit 0
- [14-11-09 17:50:11:852 PST] commasplit 1
- [14-11-09 17:50:11:852 PST] range found at commasplit 1
- [14-11-09 17:50:11:853 PST] numsplit 1
- [14-11-09 17:50:11:853 PST] commasplit 0
- [14-11-09 17:50:11:853 PST] commasplit 1
- [14-11-09 17:50:11:853 PST] range found at commasplit 1
- [14-11-09 17:50:11:854 PST] All-Star Western Vol. 3 #0, 13–16
- [14-11-09 17:50:11:854 PST] 6.0
- [14-11-09 17:50:11:854 PST] numsplit 0
- [14-11-09 17:50:11:854 PST] commasplit 0
- [14-11-09 17:50:11:855 PST] numsplit 1
- [14-11-09 17:50:11:855 PST] commasplit 0
- [14-11-09 17:50:11:855 PST] All-Star Western Vol. 3 #17–21
- [14-11-09 17:50:11:855 PST] 0.0
- [14-11-09 17:50:11:856 PST] numsplit 0
- [14-11-09 17:50:11:856 PST] commasplit 0
- [14-11-09 17:50:11:856 PST] numsplit 1
- [14-11-09 17:50:11:857 PST] commasplit 0
- [14-11-09 17:50:11:857 PST] All-Star Western Vol. 3 #22–28
- [14-11-09 17:50:11:857 PST] 0.0
- [14-11-09 17:50:11:857 PST] numsplit 0
- [14-11-09 17:50:11:858 PST] commasplit 0
- [14-11-09 17:50:11:858 PST] numsplit 1
- [14-11-09 17:50:11:858 PST] commasplit 0
- [14-11-09 17:50:11:858 PST] Animal Man Vol. 2 #1–6
- [14-11-09 17:50:11:858 PST] 0.0
- [14-11-09 17:50:11:859 PST] numsplit 0
- [14-11-09 17:50:11:859 PST] commasplit 0
- [14-11-09 17:50:11:859 PST] commasplit 1
- [14-11-09 17:50:11:859 PST] range found at commasplit 1
- [14-11-09 17:50:11:860 PST] commasplit 2
- [14-11-09 17:50:11:860 PST] numsplit 1
- [14-11-09 17:50:11:860 PST] commasplit 0
- [14-11-09 17:50:11:860 PST] commasplit 1
- [14-11-09 17:50:11:861 PST] range found at commasplit 1
- [14-11-09 17:50:11:861 PST] commasplit 2
- [14-11-09 17:50:11:861 PST] numsplit 2
- [14-11-09 17:50:11:862 PST] commasplit 0
- [14-11-09 17:50:11:862 PST] commasplit 1
- [14-11-09 17:50:11:862 PST] range found at commasplit 1
- [14-11-09 17:50:11:862 PST] commasplit 2
- [14-11-09 17:50:11:863 PST] Animal Man Vol. 2 #0, 7–11, Animal Man Annual Vol. 2 #1
- [14-11-09 17:50:11:863 PST] 12.0
- [14-11-09 17:50:11:863 PST] numsplit 0
- [14-11-09 17:50:11:863 PST] commasplit 0
- [14-11-09 17:50:11:863 PST] commasplit 1
- [14-11-09 17:50:11:864 PST] commasplit 2
- [14-11-09 17:50:11:864 PST] range found at commasplit 2
- [14-11-09 17:50:11:864 PST] numsplit 1
- [14-11-09 17:50:11:864 PST] commasplit 0
- [14-11-09 17:50:11:865 PST] commasplit 1
- [14-11-09 17:50:11:865 PST] commasplit 2
- [14-11-09 17:50:11:865 PST] range found at commasplit 2
- [14-11-09 17:50:11:865 PST] numsplit 2
- [14-11-09 17:50:11:866 PST] commasplit 0
- [14-11-09 17:50:11:866 PST] commasplit 1
- [14-11-09 17:50:11:866 PST] commasplit 2
- [14-11-09 17:50:11:866 PST] range found at commasplit 2
- [14-11-09 17:50:11:867 PST] Animal Man Vol. 2 #12–19, Swamp Thing Vol. 5 #12, 17–18
- [14-11-09 17:50:11:867 PST] 3.0
- [14-11-09 17:50:11:868 PST] numsplit 0
- [14-11-09 17:50:11:868 PST] commasplit 0
- [14-11-09 17:50:11:868 PST] commasplit 1
- [14-11-09 17:50:11:869 PST] numsplit 1
- [14-11-09 17:50:11:869 PST] commasplit 0
- [14-11-09 17:50:11:870 PST] commasplit 1
- [14-11-09 17:50:11:870 PST] numsplit 2
- [14-11-09 17:50:11:870 PST] commasplit 0
- [14-11-09 17:50:11:871 PST] commasplit 1
- [14-11-09 17:50:11:871 PST] Animal Man Vol. 2 #20–23, Animal Man Annual Vol. 2 #2
- [14-11-09 17:50:11:871 PST] 0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement