$ ./guess_the_languageRegex
Regex · easy · #47

Which pattern matches exactly the text 1+1?

  1. /^1\+1$/
  2. /^1+1$/
  3. /^[1+1]$/
  4. /^1\\+1$/
+ is a quantifier, so it must be escaped as \+ to match a literal plus sign.
Play Regex ▸