Is it possible to parse some Java code with a regex?
So let\'s say I want a list of the int variables from this:
int
You would probably want to use a more advanced grammar parsing application than regex. You could for example look into ANTLR which also has various grammars available.