Regular Expressions 101

Sponsors

Library entries

2
pcre

parse username with @ mention

no description available
Submitted by Laracasts - 6 years ago
2
pcre

zip Ile de France

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

exp1

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

Brazilian number phone

no description available
Submitted by Marcos André - 6 years ago
2
pcre

days_and_weeks

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

EclipseKeyword_2

no description available
Submitted by Rashmin - 6 years ago
2
pcre

Email validation

It validates an email address with alias
Submitted by anonymous - 6 years ago
2
python

AliasMatch

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

Adress regex

no description available
Submitted by Ali - 6 years ago
2
pcre

8 Digits Password

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

new anchor

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

httplinkresolver

get special tag contains html link
Submitted by okeskiner - 6 years ago
2
pcre

URL extractor

Extract parts of an URL.
Submitted by Gilles Marchand - 6 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 - 3 years ago