When I tried this ^[+-]?\d*(?:[\.,]\d*e?[+-]?\d+)?$, it said Test 34/93: A trailing dot or comma must be allowed.
Then I tried this ^[+-]?\d*[.,]?\d*(?:[\.,]\d*e?[+-]?\d+)?$. It said Test 39/93: Multiple dots or commas must not be allowed.
Aren't these two hints contradictory?
Question 2
When I tried another one ^(?:[+-]?\d+(?:[.,]\d*(?:e\d+)?)?|[.,]\d*e?\d+)$, it kept prompting Test 45/93: A leading dot or comma must be allowed. However, all my local tests passed(see below). Can you tell me one of your failed test cases? Thank you.
Question
Question 1
I was doing task 11:
^[+-]?\d*(?:[\.,]\d*e?[+-]?\d+)?$
, it saidTest 34/93: A trailing dot or comma must be allowed.
^[+-]?\d*[.,]?\d*(?:[\.,]\d*e?[+-]?\d+)?$
. It saidTest 39/93: Multiple dots or commas must not be allowed.
Aren't these two hints contradictory?
Question 2
When I tried another one
^(?:[+-]?\d+(?:[.,]\d*(?:e\d+)?)?|[.,]\d*e?\d+)$
, it kept promptingTest 45/93: A leading dot or comma must be allowed.
However, all my local tests passed(see below). Can you tell me one of your failed test cases? Thank you.