$ ./guess_the_language
Regex
Regex · medium · #30
Which input does this pattern match?
/^(?!test)\w+$/
"contest"
"testing"
"test"
"tester"
(?!test)
at the start rejects any string that begins with "test".
Play Regex ▸
◂ #29
all Regex questions
#31 ▸