Dear OpenRefiners,
To clean up identical film titles, I'm using Edit cells > Transform with this code to compare the values of two cells in different columns and to delete one of them in case they're identical.
if(cells["TitelCombo 1"].value == cells["TitelCombo 2"].value, cells["TitelCombo 2"].value.replace(cells["TitelCombo 2"].value,""), cells["TitelCombo 2"].value)
However, some of the titles differ only in upper and lower cases, i.e. and are therefore not detected as doubles:
This Was a Woman
This was a woman
As I'd like to also eliminate those, I'd like to modify my code so that it works case insensitive.
I've tried to include regular expressions such as /\?i/ behind the values of the if expression, but haven't been successful. Can anybody help? That would be great!
Many thanks and best
Christiane