The thing I am working on ATM has a (kinda) long strings of data like this:
56,1,0,153,0,0;56,1,0,153,0,0;56,1,0,153,0,0;5,1,2,34,B_3_1_1,0;5,1,2,34,C_9841,0;
I would like to look for the values starting with 'C_' and return the number after it. I know they will always be on the fourth position of a list of values delimited by semicolon.
I was thinking about using regular expression to parse the string into a list and searching said list, but don't think that would be very efficient.
Can anybody point me in the right direction in tackling this problem?