A regex, with tests that prove it
Arjun Mehta@arjun_codes
Fill in the blanks
0 of 3 filledThe prompt
Write a regex in language that matches what it should match and does not match what it should not.
Then give 8 test strings: 4 that should match and 4 that shouldn't, including edge cases like empty strings and Unicode. Explain each part of the pattern in a table.
If a regex is the wrong tool here, say so and show the alternative.
Fill in the blanks above to copy or open the prompt with your details in it.
