en.javascript.info/9-regular-expressions/04-regexp-anchors/1-start-end/solution.md
Ilya Kantor f21cb0a2f4 WIP
2019-09-04 15:44:48 +03:00

325 B

An empty string is the only match: it starts and immediately finishes.

The task once again demonstrates that anchors are not characters, but tests.

The string is empty "". The engine first matches the pattern:^ (input start), yes it's there, and then immediately the end pattern:$, it's here too. So there's a match.