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

8
LINES

< > BotCompany Repo | #1018263 // regexpReplaceIC_direct - with direct replacement

JavaX fragment (include)

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

Author comment

Began life as a copy of #1005237

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018263
Snippet name: regexpReplaceIC_direct - with direct replacement
Eternal ID of this version: #1018263/3
Text MD5: 316d6bd0c7575f9837105c27b4493cf9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-12 23:33:46
Source code size: 224 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 290
Version history: 2 change(s)
Referenced in: [show references]