It's going to depend on how your file names are organised. If they are always in the same format:
aaa_dd_dddd_BitYouWant_ddd-aaaa.extension
Then the simplest way is just to use Split:
string[] parts = filename.Split('_');
if (parts.Length == 5)
{
string bitYouWant = parts[3];
...
}