I am using CR XI
I have data in following possible output format
xxxxxxxxx
xxxxxxxxx-yyy
xxxxxxxxx-yyy-abcdefg
xxxxxxxxx-abcdefghij
The xxxxxxxxx is ALLWAYS 9 characters long and is present on every occasion
The yyy is ALLWAYS 3 characters long
I need to extract the other piece of data which may be there eg abcdef - This although at end is variable length
I have data in following possible output format
xxxxxxxxx
xxxxxxxxx-yyy
xxxxxxxxx-yyy-abcdefg
xxxxxxxxx-abcdefghij
The xxxxxxxxx is ALLWAYS 9 characters long and is present on every occasion
The yyy is ALLWAYS 3 characters long
I need to extract the other piece of data which may be there eg abcdef - This although at end is variable length