Hi, I’m trying to categorize the elements of an array.
For example, I have an array of string:
{ReportAA1231, ReportBB2001, ReportCC2879, ReportBB9918, ReportAA8612, ReportBB1111}
And those elements that have same first 8 characters need to be put together. (ex. “ReportAA”, “ReportBB”, “ReportCC”)
The result can be in a 2-dimendinal array or list like below:
{{ReportAA1231, ReportAA8612},
{ReportBB2001, ReportBB9918, ReportBB1111},
{ReportCC2879}}
Is there anyway to do this? Thanks!