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

8
LINES

< > BotCompany Repo | #1020631 // regexpReplaceWithNothing

JavaX fragment (include)

static S regexpReplaceWithNothing(S pat, S s) {
  Matcher m = regexpIC(pat, s);
  new StringBuffer buf;
  while (m.find())
    m.appendReplacement(buf, "");
  m.appendTail(buf);
  ret str(buf);
}

Author comment

Began life as a copy of #1018263

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020631
Snippet name: regexpReplaceWithNothing
Eternal ID of this version: #1020631/1
Text MD5: a6bfa2b8946d854344b3a7f93f158c69
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-29 00:17:19
Source code size: 202 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 298 / 326
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)