Guest practice: this set is not saved and does not count.
What does this log?
const m = "Due: 2026-10-02".match(/(\d{4})-(\d{2})-(\d{2})/); console.log(m[0], m[2], m.length);
console.log("Lovelace, Ada".replace(/(?<last>\w+), (?<first>\w+)/, "$<first> $<last>"), "2026-10-02".replace(/(\d{4})-(\d{2})-(\d{2})/, "$2/$3/$1"));
console.log("a aa aaa aaaa".match(/\ba{2,3}\b/g), "abc".match(/x*/g).length);
/a/ === /a/ is true because both regexes have the same pattern.
/a/ === /a/
true
const s = "x=1, y=22"; console.log(s.match(/(\w)=(\d+)/), s.match(/(\w)=(\d+)/g), s.match(/z/));
Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.
Check my answers