Oh how I wish I could use wildcards … but perhaps you guys can help me out.
I have a list of revit elements, some loadable families start with our firm’s code: and now I’d like to strip that code since it’s of no use (therefor clutters) to others.
[number][number][FIRMCODE 3 CHAR][FAMILYABBR, 1/2/3 CHAR] - [explanation]
So raw input:
10_VDP_GM - test
16_VDP_C - weeeee
54_VDP_DET - bleegghhh
I’d like to have the ‘explanation’ part. So first thoughts: String.split " - " … right? My thoughts to – initially. BUT string.split does break EVERY instance of that separater.
So somehow I have to count the sublist items
IF > 1: remove first sublist item and join the others
IF == 1: do nothing
OR is there a better way?
Basicly [VDP - ] would be sufficient -.-