Regular Expressions 101

Community Patterns

0

request

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 3 years ago

JSON tokenizer

0

Regular Expression
PCRE (PHP <7.3)

/
# 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 - 3 years ago