From catalog/rfc8259-json-object.abnf rule: string

Definition

string = quotation-mark *char quotation-mark

quotation-mark = %x22

char = unescaped / escape (%x22 / %x5c / %x2f / %x62 / %x66 / %x6e / %x72 / %x74 / %x75 4HEXDIG)

unescaped = %x20-21 / %x23-5b / %x5d-10ffff

escape = %x5c

    

Info

Rulename
string
Dependencies
HEXDIG, escape, unescaped, char, quotation-mark, string
Used Builtins
HEXDIG

Alphabet

Translations

Railroad Diagram

string quotation-mark char quotation-mark

Swift Regular Expression

"[ -!#-\[\]-\u{10FFFF}]*"|"[ -!#-\[\]-\u{10FFFF}]*\\((["/\bfnrt]|u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])[ -!#-\[\]-\u{10FFFF}]*\\)*(["/\bfnrt]|u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])[ -!#-\[\]-\u{10FFFF}]*"

POSIX Extended Regular Expression

"[ -!#-\[\]-\u{10FFFF}]*"|"[ -!#-\[\]-\u{10FFFF}]*\\((["/\bfnrt]|u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])[ -!#-\[\]-\u{10FFFF}]*\\)*(["/\bfnrt]|u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])[ -!#-\[\]-\u{10FFFF}]*"