I\'m trying to write a regular expression for strings that are numbers in JSON. I\'m still new to writing Regular expressions, I found a diagram of a machine for JSON numbers h
acheong87's answer should provide the regex that you require. However, if you are just trying to check if a string returned via JSON "is a number" then you can do this:
var valueAsString = "55e-2";
var isANumber = !isNaN(valueAsString);