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).

1  
static L<Long> allIntsAsLong_regexp_skipBigInts(S s) {
2  
  new L<Long> out;
3  
  for (S x : allIntsAsString_regexp(s)) {
4  
    Number n = parseLongOrBigInt(x);
5  
    if (n cast Long) out.add(n);
6  
  }
7  
  ret out;
8  
}

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: 72 / 109
Referenced in: [show references]