Skip to content

Instantly share code, notes, and snippets.

@PietrH
Created June 26, 2019 09:13
Show Gist options
  • Save PietrH/39858eda5041f15618aed4845dcc87d2 to your computer and use it in GitHub Desktop.
Save PietrH/39858eda5041f15618aed4845dcc87d2 to your computer and use it in GitHub Desktop.
Checks if a string ends with a certain character, and if this is the case, omits that character in OpenRefine GREL
if(value.endsWith(';'),substring(value,0,-1),value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment