A cross platform (macOS, Linux & Windows) unofficial "offline" version of the regex101.com website. Uses the users own database (any qt supported backend - sqlite, mysql, postgresql etc) to store expressions.
200
stars
36
forks
source link
[quiz] 22. Tokenized List Test 20 fails seemingly incorrectly #11
Entering \G(?: *)(?:"((?:\\.|[^"])*)"|([^"](?:[^,\s]| (?= *[^,\s][^,]*(?:,|$)))*))(?:\s*)(?:,|$) into Task 22 results in a fail
while the same regex run on the provided example in a unit test succeeds
Software/Settings used:
Firefox 121.0 (64 Bit) on Windows 11
regex101 editor unit tests with PCRE2 selected
Expected behavior:
The regex should succeed Test 20 of Task 22 of the quiz if the error message is correct.
Further Information:
During testing, i noticed that removing the \G from the start of the regex causes it to fail test 19 instead of 20 and that both tests have the same error message (the only difference being their formatting)
Problem
Entering
\G(?: *)(?:"((?:\\.|[^"])*)"|([^"](?:[^,\s]| (?= *[^,\s][^,]*(?:,|$)))*))(?:\s*)(?:,|$)
into Task 22 results in a fail while the same regex run on the provided example in a unit test succeedsSoftware/Settings used:
Expected behavior:
The regex should succeed Test 20 of Task 22 of the quiz if the error message is correct.
Further Information:
During testing, i noticed that removing the
\G
from the start of the regex causes it to fail test 19 instead of 20 and that both tests have the same error message (the only difference being their formatting)