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

12
LINES

< > BotCompany Repo | #1024118 // ellipsisToGroupedDotPlusRegexp

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

Libraryless. Click here for Pure Java version (1674L/11K).

scope ellipsisToGroupedDotPlusRegexp.

static SS #cache = synchronizedMRUCache(100);

sS ellipsisToGroupedDotPlusRegexp(S s) {
  S out = cache.get(s);
  if (out == null)
    cache.put(s, out = ellipsisToRegexp_generic(s, "(.+)"));
  ret out;
}

end scope

Author comment

Began life as a copy of #1024108

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024118
Snippet name: ellipsisToGroupedDotPlusRegexp
Eternal ID of this version: #1024118/5
Text MD5: a0ce55632ea8877ceb751c79412f5cd1
Transpilation MD5: 0123edd29ea660e4fed8ffcbd4c76e5f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-26 00:09:25
Source code size: 265 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 250 / 358
Version history: 4 change(s)
Referenced in: [show references]