Regular Expressions 101

Library entries

JSON tokenizer

Vote

0

Regular Expression
pcre

/
# JSON TOKENIZER # Each token class is captured in its own group : # Group 1 -> [ # Group 2 -> ] # Group 3 -> { # Group 4 -> } # Group 5 -> : # Group 6 -> , # Group 7 -> - (unary minus) # Group 8 -> : null # Group 9 -> : true # Group 10 -> : false # Group 11 -> : positive number # Group 12 -> : string # Group 13 -> : unrecognized (\[)|(\])|(\{)|(\})|(\:)|(,)|(-)|(null)\b|(true)\b|(false)\b|(\d+(?:\.\d+)?(?:e[-+]?\d+)?)|(\"(?:\\\"|[^\"])*\")|([^\[\]{}:,\"\s]+)
/
gmx

Description

Loading markdown...
Submitted by anonymous - 2 years ago