Hello,
I'm trying to convert a range of alphanumeric characters into a list. I'm pretty new to JSL and I'm not sure exactly how to go about doing this. This is what I would like to achieve:
Orginal: CH1-3
Return: CH1,CH2,CH3
The character prefix does not always contain two characters (Could be CH1-3 or X5-8 for example).
I know that if I had a range of just two numbers, like CH1-2, I could use the following script to get what I want:
Regex("CH1-2", "([A-Z]+)([0-9]+)(-)([0-9]+)", "\1\2,\1\4", GLOBALREPLACE);Which returns CH1,CH2
However, I have no idea how to do this for ranges with more than two numbers.
Any assistance would be greatly appreciated!