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

3
LINES

< > BotCompany Repo | #1019376 // containsWord_regexp - use regexp word boundaries - word is not a regexp

JavaX fragment (include)

1  
sbool containsWord_regexp(S s, S word) {
2  
  ret containsRegexpIC(s, "\\b" + regexpQuote(word) + "\\b");
3  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019376
Snippet name: containsWord_regexp - use regexp word boundaries - word is not a regexp
Eternal ID of this version: #1019376/1
Text MD5: 5da57a69b8bcd20113d8eb4e7922f6fd
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-04 17:46:09
Source code size: 106 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 380 / 433
Referenced in: [show references]