Regular Expressions 101

Library entries

0
pcre

strip host port

removes port number from URL
Submitted by pc - 6 days ago
0
pcre

Proxy Matcher

Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by dev.tntd2k2 - 9 days ago
0
pcre

latlonlatlon

gg
Submitted by anonymous - 9 days ago
0
javascript

test

test
Submitted by anonymous - 10 days ago
1
pcre

ENEL T5 Mono

T
Submitted by anonymous - 21 days ago

foreach

Vote

2

Regular Expression
pcre

/
{[ \t]*foreach[ \t]*\$(_*[A-Za-z]+[A-Za-z0-9_]*)[ \t]*as[ \t]*\$(_*[A-Za-z]+[A-Za-z0-9_]*)(?:[ \t]=>[ \t]*\$(_*[A-Za-z]+[A-Za-z0-9_]*))?[ \t]*}(.*){[ \t]*\/foreach[ \t]*}
/
Uis

Description

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