Guest User

Untitled

a guest
Jul 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. StringContainsQ[{"abcd", "cdab", "acdb", "abdc"}, "ab" ~~ ___ ~~ "cd"]
  2.  
  3. {True, False, False, False}
  4.  
  5. {True, True, False, False}
  6.  
  7. StringContainsQ[{"abcd", "cdab", "acdb", "abdc"}, "ab"&&"cd"]
  8.  
  9. StringContainsQ[{"abcd", "cdab", "acdb", "abdc"},
  10. ("ab" ~~ ___ ~~ "cd")|( "cd" ~~ ___ ~~ "ab")]
Add Comment
Please, Sign In to add comment