Regular expressions are powerful, but that looks like something where they are not in place.
It is much simpler to compare to a list of reserved words(int,double etc, not something and family) and parse until white space or control is met
I don't understand your post. I need to get the variable names (something, anything etc ..) that are highlighted with bold.
It means parsing
out the known reserved words, numbers, etc. so that you're left with the "unknown" ones, which are what you're after. For example, parsing the second line:
double anything=2.15; you first get "double" which, being a reserved word, you can ignore; then you skip the space(s) and get the word up to the symbol "=": you get "
anything" which is
not a reserved word but comes after one, so it must be a variable name, which is what you're looking for. Keep going on, skipping the parts in which you're not interested, and you get your list of variables as result.
It might help if you draw a BNF diagram of your lines; that allows you to get a "feel" of what (and how) to parse "in" and what "out".