Here is my simple variant of regex exspression for finding both negative and positive int and float numbers in code:
(\b|\B-)\d*(\.\d+)?
Works fine for any number variable declarations:
float x = -0.25; int y = 123;
etc...