Does anyone know the correct GREL for transforming cells in a column so that instead of '12456789' the string shows '1245-6789'? I want to apply this to all the different values of the cells in the column. Thanks
I was going to use the Edit Facet Expression based on Column.
One way to do this is with a regular expression that will look for strings of eight number characters and replace them with the new format. According to the GREL documentation and this forum post, one way to do that is as follows:
This works by taking a capture group of the first four numbers and a capture group of the final four numbers, then replacing that string with a string that has a hyphen between the two groups.