<code> is not a valid BB tag. You need to use square brackets [ ] to surround your code tags. And <sample string> is not valid either, even if you use square brackets.
Some functions to look in to for parsing are strtok (which you're already using) and sscanf. You may want to have strtok split on a space/tab character so that you get the token containing 1245. Alternatively, you can use sscanf:
Code:
int first_number, second_number;
// check if sscanf returns 2, meaning we have two successful conversions
if (sscanf(test_buffer, "DM_I_SENSE_... [INT(16)] %d ; %d", &first_number, &second_number) == 2)
Read your documentation for more detail on the scanf functions and play around with some simpler examples first.