Regular Expressions 101

Community Patterns

0

INI values

PCRE2 (PHP >=7.3)
not done yet
Submitted by anonymous - a year ago
0

Time in hh:mm:ss

PCRE (PHP <7.3)
19h32min16s
Submitted by anonymous - a year ago
0

Postfix

PCRE2 (PHP >=7.3)
Add DR to end of line
Submitted by anonymous - a year ago

JSON validator

2

Regular Expression
PCRE (PHP <7.3)

/
(?<o>{((?<s>\"([^\0-\x1F\"\\]|\\[\"\\\/bfnrt]|\\u[0-9a-fA-F]{4})*\"):(?<v>\g<s>|(?<n>-?(0|[1-9]\d*)(.\d+)?([eE][+-]?\d+)?)|\g<o>|\g<a>|true|false|null))?\s*((?<c>,\s*)\g<s>(?<d>:\s*)\g<v>)*})|(?<a>\[\g<v>?(\g<c>\g<v>)*\])
/

Description

Loading markdown...
Submitted by luis140219 on GitHub and Sourceforge - 8 years ago