Is it possible to construct a string pattern from a list of strings?
With[{patLst = {"abc", "bcd"}, str = "zabc"},
StringMatchQ[
str,
___~~("abc" | "bcd")~~__ (* How can I construct this dynamically from patLst? *)
]
]
Thanks in advance.
Alternatives @@ pathLst. You can always useFullFormon that you want to get and, well do this. – Kuba Oct 05 '15 at 07:14Applybut not ofAlternatives. It was the latter that was holding me up. – Shredderroy Oct 05 '15 at 07:43