Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.1K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How can I find sentences that contain this but not that?

Posted 2 years ago
POSTED BY: Gregory Lypny
2 Replies
Posted 2 years ago
Select[
 sentences, 
 And[StringContainsQ[WordBoundary ~~ "cat" ~~ WordBoundary][#], 
   StringFreeQ[WordBoundary ~~ "rat" ~~ WordBoundary][#]] &]
POSTED BY: Eric Rimbey
Posted 2 years ago
POSTED BY: Gregory Lypny
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard