Reputation: 1241
I want to get a text that contains the word "com" but not to contain the word "blog" . Is it possible for these two conditions to be combined ?
example :
<html>
www.games.com
www.gamerblog.com
www.sports.com
</html>
result = [www.games.com , www.sports.com]
Upvotes: 0
Views: 136
Reputation: 88066
Use logical NOT with logical AND with two separate contains
calls:
contains(., "com") and not(contains(., "blog"))
Upvotes: 1