Here is some sample input:
<210> DW_AT_name : (indirect string, offset: 0x55): double
<ae> DW_AT_name : (indirect string, offset: 0x24): long int
<b5> DW_AT_name : int
I want to extract the string that represents the actual type. So my output would be:
double
long int
int
Here is the regex I have so far (double escaped because it's in Java):
.*DW_AT_name.*:\\s*([^:&&\\S]*)\\s*
It works for the int
, but it doesn't work for the other two. I think the best solution is to basically say 'get everything after the last colon' but I'm not sure how. Note that it must also include the DW_AT_NAME
stuff.