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   

Travelled to 9 computer(s): cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tvejysmllsmz, 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: 104 / 110
Referenced in: [show references]

Formerly at http://tinybrain.de/1019376 & http://1019376.tinybrain.de