firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.21k stars 198 forks source link

Task 11 - Contradictory error messages? #1977

Closed Startrekzky closed 1 year ago

Startrekzky commented 1 year ago

Question

Question 1

I was doing task 11:

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.

45
3.14159
3,14159
334,399
23.14159
23,14159
3979.141e59
3.e2
3,e2
.11
,11
.e2
,e2
.2e2
,2e2
-1.35
-2.e2
Startrekzky commented 1 year ago

Bump

firasdib commented 1 year ago

How so? You must allow a trailing dot, but not multiple.