Regular Expressions 101

Sponsors

Library entries

0
pcre

os_version

no description available
Submitted by anonymous - 2 years ago
0
pcre

Regex Connection String (Options)

no description available
Submitted by anonymous - 2 years ago
0
pcre

Extract Whois Data

no description available
Submitted by anonymous - 2 years ago
0
python

退房时间

no description available
Submitted by anonymous - 2 years ago
0
python

打扫

no description available
Submitted by anonymous - 2 years ago
0
pcre

nga @builder doc header 4

no description available
Submitted by anonymous - 2 years ago
0
python

打扫

no description available
Submitted by anonymous - 2 years ago
0
python

叫醒

no description available
Submitted by anonymous - 2 years ago
0
pcre

get signal name from timing file name

no description available
Submitted by anonymous - 2 years ago
0
python

frontkn CF

no description available
Submitted by anonymous - 2 years ago
0
pcre

Bound Reference

no description available
Submitted by anonymous - 2 years ago
0
pcre

match after

no description available
Submitted by anonymous - 2 years ago
0
python

remove comma from City, State

no description available
Submitted by anonymous - 2 years ago
0
python

job titles - fwd/bwd - 2

no description available
Submitted by anonymous - 2 years ago
0
python

job titles - fwd/bwd

no description available
Submitted by anonymous - 2 years ago
0
pcre

match titles in url

loud
Submitted by anonymous - 2 years ago

JSON Validation (RFC-8259)

Vote

1

Regular Expression
pcre

/
(?(DEFINE) # JSON does not need backtracking if it's valid # so everything is atomic to prevent backtracking # regex is built per https://tools.ietf.org/html/rfc8259 (?<json>(?>\s*(?&object)\s*|\s*(?&array)\s*)) (?<object>(?>\{\s*(?>(?&member)(?>\s*,\s*(?&member))*)?\s*\})) (?<member>(?>(?&string)\s*:\s*(?&value))) (?<array>(?>\[\s*(?>(?&value)(?>\s*,\s*(?&value))*)?\s*\])) (?<value>(?>)false|null|true|(?&object)|(?&array)|(?&number)|(?&string)) (?<number>(?>-?(?>0|[1-9][0-9]*)(?>\.[0-9]+)?(?>[eE][-+]?[0-9]+)?)) (?<string>(?>"(?>\\(?>["\\\/bfnrt]|u[a-fA-F0-9]{4})|[^"\\\0-\x1F\x7F]+)*")) ) \A(?&json)\z
/
x

Description

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