^(?2)(([ \n\r\t])(((?9)(?2):((?2)(?1)(?2)))(,(?2)(?4)))?}[(?2)((?1)(?2)(,(?5))*)?]|true|false|("([^"\\p{Cc]|\(["\/bfnrt]|u[\da-fA-F]{4}))")|-?(0|[1-9]\d)(.\d+)?([eE][-+]?\d+)?|null)(?2)$

  • RoboHack@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    A small set of regular expressions can tokenize JSON text – that’s what lex helps with, for example. However regular expressions cannot truly parse anything.