Forum Discussion
AlexeyK
13 years agoSmartBear Alumni (Retired)
Mark,
As far as I know, the search method finds a substring in a string using regular expressions.
It's possible to use regular expressions here, but I think that they work longer and require a bit more resources.
Why don't you use indexOf or ordinary comparison? E.g. --
if(str.indexOf(collectionSet) == 0){
...
-- or --
if(str == collectionSet){
...
The latter case implies that you have "full strings" specified in your baseline Excel sheet (that is, you have both "Smart Collection" and "Collection", not just "Collection").