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)

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

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: 381 / 433
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1023784 - wordRegexp - word to regexp (with word boundaries)
#1026073 - containsWord_regexp_noIC - use regexp word boundaries - word is not a regexp
#1026342 - containsWord_regexp_any