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); }
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: | 337 / 366 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020631 - regexpReplaceWithNothing #1021192 - regexpReplaceWithFirstGroup - replace occurrence with first group of pattern #1021370 - regexpReplace_direct - with direct replacement |