Regular Expressions 101

Sponsors

Library entries

0
pcre

Linux1-4-2-2

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

Linux1-4-2-2

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

Linux1-4-2-1

no description available
Submitted by anonymous - 4 years ago
0
javascript

MC

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

No control characters

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

th

no description available
Submitted by anonymous - 4 years ago
0
javascript

Time

hh:mm 24
Submitted by anonymous - 4 years ago
0
pcre

id belgium

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

Ignorer les espaces

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

ARDRG or Hospital PrvNbr or AgeGroup

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

between keywords

STARTKEYWORD (.+?)(?:$| ENDKEYWORD$)
Submitted by anonymous - 4 years ago
0
pcre

between keywords

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

valida percentual até 100%

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

Get RM Shortcodes

no description available
Submitted by anonymous - 4 years ago

Regex to match any JSON value with fewer steps possible

Vote

2

Regular Expression
pcre

/
(?smx) (?(DEFINE) (?<jsonObject> \{(?&jsonField)(?>,(?&jsonField))*+\}| \{[[:space:]]*+\} ) (?<jsonArray> \[(?&jsonValue)(?>,(?&jsonValue))*+\]| \[[[:space:]]*+\] ) (?<string> " [^"\\]*+ (?> (?> \\["\\\/rntfb]| \\u[[:xdigit:]]{4} )++ [^"\\]*+ )*+ " ) (?<number> \-?+ (?> [1-9][[:digit:]]*+| 0 ) (?>\.[[:digit:]]++)?+ (?>[eE][\+\-]?+[[:digit:]]++)?+ ) (?<jsonValue> [[:space:]]*+ (?> (?&string)| (?&number)| (?&jsonObject)| (?&jsonArray)| false| true| null ) [[:space:]]*+ ) (?<jsonField> [[:space:]]*+(?&string)[[:space:]]*+\: (?&jsonValue) ) ) ^(?&jsonValue),\n
/
g

Description

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