Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1032671 // allIntsAsLong_regexp_skipBigInts

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3951L/23K).

static L<Long> allIntsAsLong_regexp_skipBigInts(S s) {
  new L<Long> out;
  for (S x : allIntsAsString_regexp(s)) {
    Number n = parseLongOrBigInt(x);
    if (n cast Long) out.add(n);
  }
  ret out;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032671
Snippet name: allIntsAsLong_regexp_skipBigInts
Eternal ID of this version: #1032671/1
Text MD5: f07968163c0ed56180f5f928afba4bbb
Transpilation MD5: 817a5eac9146c77003b00d4c68d84cbf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-01 15:40:08
Source code size: 209 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 196
Referenced in: [show references]