Tier 3 · Warlockmatch
Matching Quotes
Match text containing a quoted section — opened and closed by the same quote character, single or double.
The trick is that the closing quote must be the same character as the opening one. A character class alone cannot express that; a backreference can.
Your pattern0 chars · par 11
//
Flags
Start typing — tests run as you go.0 of 4 visible tests passing
Test cases
he said "hi"must matchit's 'here'must matchmismatched "quote'must not matchno quotes at allmust not match
+ 6 hidden tests, checked when you submit. They are what stops a pattern that only fits the examples above.