Hi,
Anyone know how to get matching only strings from list of strings? I’m searching for P2.* sheets but it gives me FP2.* sheets as well. Anyone know any node which can do that? OR should I try with python?
Never mind, I worked it through python code.
Care to share so others can refer to this later on?
import re
output=[]
for i in IN[0]:
if re.match(IN[1],i):
output.append(True)
else:
output.append(False)
OUT = output
1 Like
where did you place your python node?
You can also use the == node instead of string contains for an exact match.