See if this works for you:
import re
set1 = ['\\land','\\lor','\\implies']
strings = ['\land', '(\lor']
r = re.compile('|'.join([re.escape(w) for w in set1]), flags=re.I)
for i in strings:
print(r.findall(i))
The output of this is
['\\land']
['\\lor']
**** Modification - if there is one string**
import re
set1 = ['\\land','\\lor','\\implies']
strings = '(\lor'
r = re.compile('|'.join([re.escape(w) for w in set1]), flags=re.I)
print(r.findall(strings))
** if you just want the special character "(" to be out from "(\lor" we could do that by this :
>>> a = '(\lor'
>>> a.split('(')[1]
'\\lor'
set1is alist, notset. And\landis not inset1, unless you look for some partial/fuzzy match. Nor list elements are in\landstring. In this case you need to clarify your question/provide more info.(\lorisn't inset1but one of the items inset1is in(\lor. Is that what you mean? Thenany(s in "(\\lor" for s in set1)would do.