Forum Discussion
soda
13 years agoContributor
Thanks for the replies. I am going to try the ^Collection$ expression as well.
What I have had for code so far is this:
if((str.search(collectionSet) > -1) && str.search(collectionSet) < 1){
- statements
}
and then decided I could just use:
if((str.search(collectionSet) == 0){
-statements
}
But I am concerned about a case where for whatever reason there might be a space before the actual listview item name sotred in my array. In which case, I guess I could strip leading spaces.
Any thoughts on that?
What I have had for code so far is this:
if((str.search(collectionSet) > -1) && str.search(collectionSet) < 1){
- statements
}
and then decided I could just use:
if((str.search(collectionSet) == 0){
-statements
}
But I am concerned about a case where for whatever reason there might be a space before the actual listview item name sotred in my array. In which case, I guess I could strip leading spaces.
Any thoughts on that?