I have a string as follows
CompilationStatistics_Compilation_StepList_Map_TimingUsage_ClockList_Clock_MinimumPeriod
What would be the simplest way to remove the first part (CompilationStatistics_) or the last part (_MiniumuPeriod)?
I think about using regular expression, but I expect there should a better way.
m = re.search("{.+}_{.+}", string)
m.group(2)