Search

#regex in:coding

Staff picks only (off)

1 public prompt in Coding

Prompts

Coding

Matched on #regex · in Coding

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.
Arjun Mehta990 uses