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

3
LINES

< > BotCompany Repo | #1018264 // replacePhrase - uses quoted regexp & word boundaries. ignores case

JavaX fragment (include)

1  
sS replacePhrase(S s, S pattern, S replacement) {
2  
  ret cic(s, pattern) ? regexpReplaceIC_direct(s, "\\b" + regexpQuote(pattern) + "\\b", replacement) : s;
3  
}

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: #1018264
Snippet name: replacePhrase - uses quoted regexp & word boundaries. ignores case
Eternal ID of this version: #1018264/5
Text MD5: c9dc6393ed1c940dd69c2edcfa12909e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-30 17:38:50
Source code size: 159 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 327 / 353
Version history: 4 change(s)
Referenced in: [show references]