RegexWars
Tier 7 · Apprenticematch

Not A Letter

Match any string that contains a character which is not an A–Z letter.

A ^ as the first character inside [] negates the class: [^abc] means "any one character that is not a, b or c".

Your pattern0 chars · par 9
//
Flags
Start typing — tests run as you go.0 of 6 visible tests passing
Test cases
  • abc1must match
  • hello worldmust match

    the space counts

  • !must match
  • user@hostmust match

    any non-letter at all, not just the ones above

  • abcmust not match
  • HelloWorldmust not match

+ 7 hidden tests, checked when you submit. They are what stops a pattern that only fits the examples above.