Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which validation rule prevents a regular expression from accepting a valid-looking substring inside otherwise invalid input?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-2/checkpoint-2-full-match/).
Context (verbatim from the page):
"""
Which validation rule prevents a regular expression from accepting a valid-looking substring inside otherwise invalid input?
Require the match to consume the entire input.
Add more capturing groups around the existing pattern.
Run the same unanchored search twice.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.