Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update trivial regex capture group find and replace challen…
…ge (#37768) * refactor: replace trivial regex capture group challenge Previous challenge could be completed without any capture groups. New challenge requires 3 capture groups and 3 uses of the submatches in the replacement. resolves #17645 * test: validate at least 3 capture groups were used Use solution from SO (https://stackoverflow.com/questions/16046620/regex-to-count-the-number-of-capturing-groups-in-a-regex) as suggested by @RandellDawson to count the number of capturing groups, regardless of whether or not the regex in question solves the broader problem. Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * refactor: more meaningful variable name Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * test: add parenthesized substring test * test: ensure 3 uses of substring replacement * refactor: reword instructions * fix: minor grammar fix Co-Authored-By: Manish Giri <manish.giri.me@gmail.com> * refactor: elaborate wording in test
- Loading branch information