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

3
LINES

< > BotCompany Repo | #1026073 // containsWord_regexp_noIC - use regexp word boundaries - word is not a regexp

JavaX fragment (include)

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

Author comment

Began life as a copy of #1019376

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026073
Snippet name: containsWord_regexp_noIC - use regexp word boundaries - word is not a regexp
Eternal ID of this version: #1026073/1
Text MD5: b199d2391982d2d3d0f0bb940b3a19e9
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-19 13:20:32
Source code size: 109 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 169 / 189
Referenced in: [show references]