Regular Expressions 101

Sponsors

Library entries

1
python

example

group matching
Submitted by anonymous - 8 years ago
-2
pcre

Sample

no description available
Submitted by anonymous - 8 years ago
0
python

almost any similar word

no description available
Submitted by anonymous - 8 years ago
0
python

Words that start with...

no description available
Submitted by anonymous - 8 years ago
4
javascript

Repeated words (JS)

no description available
Submitted by paconaranjo - 8 years ago
1
pcre

Repeated phrases in one

no description available
Submitted by paconaranjo - 8 years ago
2
python

Parasite subtitles

no description available
Submitted by Andrey Spiridonov - 8 years ago
2
pcre

Repetitions

More than three words repeated in 3.
Submitted by paconaranjo - 8 years 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 - 7 years ago