Regular Expressions 101

Community Patterns

0

test

PCRE2 (PHP >=7.3)
test
Submitted by anonymous - 9 months ago
0

1-100

PCRE (PHP <7.3)
1-100
Submitted by anonymous - 9 months ago

C#-ifying classes pasted from JSON

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^\s+public (?<type>[\w\[\]]+) (?<prop_1st>\w)(?<prop_rest>[^\W_]+)(?<prop_opt>_(?<opt_1st>\w)(?<opt_rest>[^\W_]+))* { get; set; }$
/
gm

Description

Loading markdown...
Submitted by Gareth James - a year ago