This is a continuation from this post about how to mimic Marcedit capturing group Find/Replace in Open Refine.
The one problem with mimicking the Marcedit Find/Replace is that it will wipe out the data you don't want to alter unless you facet it out first. This is kind of cumbersome and still doesn't have the convenience of Marcedit's Find/Replace.
However, the if function takes care of that problem. I'm going to post the recipe here at the top and then go into detail further down. So, for your capturing group find of value.match(/<capturing group regex>/), do a transform cells, and drop it into this statement:
if(isNotNull(value.match(/<your find>/)), <your replace>, value)
Showing posts with label find/replace across columns. Show all posts
Showing posts with label find/replace across columns. Show all posts
Subscribe to:
Posts (Atom)