Regular Expressions 101

Community Patterns

RAR and ZIP files

3

Regular Expression
PCRE (PHP <7.3)

/
.(?:r\d\d|r\d\d\d|rar|zip)
/

Description

recognizes RAR archives (including splitted archives) and ZIP archives

Submitted by anonymous - 8 years ago