You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In /-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/ — er, wait, I think this will be a little easier to see if we translate to an idiomatic ES pattern first. In
the second \d* can only ever match the empty string (\d{0,0}) because \d+\.\d* (\d{1,∞}\.\d{0,∞}) is inclusive of \d+\.\d+ (\d{1,∞}\.\d{1,∞}). As it “does nothing”, it seems clearer to not include it: