Regular Expressions 101

Community Patterns

Asadasdsd

1

Regular Expression
PCRE (PHP <7.3)

@
\{ ( (?:[\-#=\@!%$*+?])? \w [\w\-\.\d]* ) (?#1 param name) ( \? )? (?#2 optional) (?: <(.*?)?\|(.*?)?> (?#3 behind)(?#4 after) )? (?: :( [\w&] [\w\.\-\d\s]* (?:\[\])? ) (?#5 type) (?: \( ([^{]+?) (?#6 type args) \) (?: \( ([^\}]) (?#7 type args separator) \) )? )? )? (?: :\( ([^{]+) (?#8 pattern) \) )? (?: =( [^}]* ) (?#9 default value) )? \} | ( \{? [^{]+ ) (?#10 plain text)
@
x

Description

no description available

Submitted by anonymous - 7 years ago