String.MultipleReplace returns null for search in list

I am searching and replacing multiple strings in a list using String.MultipleReplace (Clockwork) node and I get only the result for the first item in searchfor list, others come as null. Am I doing something wrong? or is there another node to do this correctly?

@salmanjavaid2000 Since the Python code inside the node is using a zip function.
Change the Code Block for replaceWith to ["over 115mm","over 115mm","over 115mm"];

The list length for searchFor and replaceWith should be same (3 versus 3 and not 3 versus 1)

2 Likes

Thank you very much for the help @AmolShah. With your solution, I also got to know how to add double apostrophe in Code Block, as I am not much of an expert in programming :slight_smile:

1 Like