this post was submitted on 14 Nov 2022
4 points (100.0% liked)

General Programming Discussion

7709 readers
2 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 5 years ago
MODERATORS
 

^(?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)$

you are viewing a single comment's thread
view the rest of the comments
[–] robohack@lemmy.ca 1 points 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.