in reply to Re: Named capture backreferences cannot be used in character classes?
in thread Named capture backreferences cannot be used in character classes?
that is shorter than your regex.
Except I need to retain knowledge of the quote type, so: qr[(?<FQ>")[^"]+"|(?<FQ>')[^']+']; but that's fine.
|
|---|