$ ./guess_the_languageRegex
Regex · medium · #30

Which input does this pattern match?

/^(?!test)\w+$/
  1. "contest"
  2. "testing"
  3. "test"
  4. "tester"
(?!test) at the start rejects any string that begins with "test".
Play Regex ▸